08 Mar 2021 17:58:15 UTC
- Distribution: Crypt-Passphrase-Scrypt
- Module version: 0.001
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (7 / 0 / 0)
- KwaliteeBus factor: 1
- 80.52% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (11.89KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionLEONT Leon Timmermans
- COPYRIGHT AND LICENSE
Crypt::Passphrase::Scrypt - A scrypt encoder for Crypt::Passphrase
This creates a new scrypt encoder, it takes named parameters that are all optional. Note that some defaults are likely to change at some point in the future, as computers get progressively more powerful and cryptoanalysis gets more advanced.
This is the cost factor that is used to hash passwords, it scales exponentially. It currently defaults to
16, but this may change in any future version.
This defaults to 8, you probably have no need for changing this.
The number of threads used for the hash. This defaults to
1, but this number may change in any future version.
The size of a hashed value. This defaults to 16 bytes, increasing it only makes sense if your passwords actually contain more than 128 bits of entropy.
The size of the salt. This defaults to 16 bytes, which should be more than enough for any use-case.
This hashes the passwords with scrypt according to the specified settings and a random salt (and will thus return a different result each time).
This returns true if the hash uses a different cipher, or if any of the cost is lower that desired by the encoder.
This class supports the following crypt type:
This will check if a password matches a scrypt hash.
Leon Timmermans <firstname.lastname@example.org>
This software is copyright (c) 2021 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Crypt::Passphrase::Scrypt, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Crypt::Passphrase::Scrypt
For more information on module installation, please visit the detailed CPAN module installation guide.