BCrypt

NAME

Zeco::Util::BCrypt

SYNOPSIS

Contains bindings to libcrypt and provides two methods for hashing and matching a hashed password. hash-passwd and match-passwd.

method hash-passwd(Str:D --> Str)

Signature: Str - the string to salt and hash.
Returns: Str - the salted and hashed password. 

Salts and hashes a password.

method match-passwd(Str:D hash-string --> Bool)

Signature: $password - the password to match the $hash-string to
           $hash-string - the salted and hashed string generated with
                          hash-passwd
Returns: Bool - indicates whether the password provided is the same as in the
                hash-string.

Checks an inputted password against a securely stored password.

Zeco v0.0.3

An ecosystem hosting module for raku

Authors

    License

    Artistic-2.0

    Dependencies

    Humming-Bird:ver<3.0.0+>Humming-Bird::CoreNet::DNSDB::Pgraku-mailgunCrypt::RandomEmail::ValidTOML:auth<zef:tony-o>Digest::SHA1::Native

    Test Dependencies

    Provides

    • Zeco
    • Zeco::Config
    • Zeco::DB
    • Zeco::Dist
    • Zeco::Email
    • Zeco::Group
    • Zeco::Query
    • Zeco::Query::Dists
    • Zeco::Query::Groups
    • Zeco::Query::Users
    • Zeco::Responses
    • Zeco::User
    • Zeco::Util::BCrypt
    • Zeco::Util::BST
    • Zeco::Util::Json
    • Zeco::Util::Middleware
    • Zeco::Util::Process
    • Zeco::Util::Types

    The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.