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.

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