Name : perl-Crypt-Password
| |
Version : 0.28
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 2.44
| Date : 2024-08-05 19:43:17
|
Group : Development/Libraries/Perl
| Source RPM : perl-Crypt-Password-0.28-2.44.src.rpm
|
Size : 0.03 MB
| |
Packager : (none)
| |
Summary : Unix-style, Variously Hashed Passwords
|
Description :
This is just a wrapper for perl\'s \'crypt()\', which can do everything you would probably want to do to store a password, but this is to make usage easier. The object stringifies to the return string of the crypt() function, which is (on *Linux/glibc* et al) in Modular Crypt Format:
That you can store, etc, retrieve then use it in \'check_password()\' to validate a login, etc.
Not without some danger, so read on, you could also string compare it to the output of another \'password()\', as long as the salt is the same. If you pass a crypted string as the salt it will use the same salt.
If the given string is already hashed it is assumed to be okay to use it as is. So if you are checking something from the outside world pass it as the second argument to \'check_password($saved, $wild)\'. You could also use \'crypt_password($wild)\', which will definitely crypt its input.
This means simpler code and users can supply pre-hashed passwords initially, but if you do it wrong a stolen hash could be used as a password, so buck up your ideas.
If you aren\'t running *Linux/glibc*, everything after the WARNING in the synopsis is dubious as. If you\'ve got insight into how this module can work better on your platform I would love to hear from you.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/openSUSE_Tumbleweed/noarch |