Ruby/Password is a set of useful methods for creating, verifying, and manipulating passwords. It includes an interface to CrackLib, a library commonly used for checking password strength. It is intended to be used by system administrators who need to write Ruby programs that prompt for, generate, verify, and encrypt passwords.
| Tags | Security Systems Administration Software Development Libraries Ruby Modules |
|---|---|
| Licenses | GPL |
| Operating Systems | Unix |
| Implementation | Ruby |
Recent releases


Changes: packer.h is no longer used when building. crack.h is now always required. This should fix build problems on Fedora Core 4 and possibly other systems.


Changes: The build environment has been modified to search for the system dictionary in the additional location of /var/cache/cracklib/cracklib_dict.pwd, which is where it is on Debian Linux.


Changes: Password.get would throw an exception in the unlikely event that STDIN reached EOF without any input. In addition, pwgen now supports a -v or --version switch.


Changes: A new example program, pwgen, has been added, complete with man page. A new class method, Password.phonemic, generates phonemic passwords. The old Password.random method has been renamed Password.urandom and replaced by a new, portable Password.random. Password.get will now detect whether STDIN is connected to a tty. If not, no password prompt is displayed and no attempt will be made to manipulate terminal echo. A Password::CryptError exception is now raised if the salt passed to Password#crypt contains a bad character. RDoc documentation has been added.


Changes: A warning that occurred when loading the library into Ruby 1.8.x is now avoided.