Crypt:...2::Hash(3pm)
π NAME π
okay bestie, welcome to Crypt::PBKDF2::Hash β it's from the User Contributed Perl Documentation, and the man-page handle is Crypt:...2::Hash(3pm) (yes, dots and all π
). The NAME section is short and iconic: Crypt::PBKDF2::Hash - Abstract role for PBKDF2 hashing algorithms. It's giving abstract-role realness, and we're obsessed.
β¨ VERSION β¨
version 0.261630 β that's the version, no cap.
πΈ METHODS πΈ
Here's the method list, bestie β every method, every detail, zero skips.
hash_len() β the byte-counting baddie
Returns the length (in bytes) of the hashes this algorithm generates. Byte length, periodt.
generate($data, $key) β pseudorandom bit generator
Generate strong pseudorandom bits based on the $data and $key. That's the move, and it's lowkey iconic.
to_algo_string() β optional-args to string
Return a string representing any optional arguments this object was created with, for use by Crypt::PBKDF2's generate and encode_string methods. It may return undef if no arguments are required, in which case none will be serialized and from_algo_string won't be called on reading the hash. So if there are no optional args, undef is valid and the serialization just doesn't happen. Slay.
from_algo_string($str) β string back to object
Given a string as produced by "from_algo_string" β yes, that's what the doc says β return an instance of this class with options corresponding to those in $str. If no options are expected, it's permissible for this method to throw an exception. Permission to throw is very main character, honestly.
π«Ά AUTHOR π«Ά
Andrew Rodland <andrew@cleverdomain.org> β the author, and we're sending them good vibes.
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 by Andrew Rodland.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free-software freedom, bestie β same terms as the Perl 5 programming language system itself.
Signed off with perl v5.42.2, dated 2026-08-07, and the footer handle is Crypt:...2::Hash(3pm). Byeee, go hash responsibly πβ¨π
π¦ where this page comes from
- arch rolling: perl-crypt-pbkdf2 0.261630-1 Β· GPL AND PerlArtistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms