debian man page for jifty::dbi::filter::salthash

Query: jifty::dbi::filter::salthash

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Jifty::DBI::Filter::SaltHash(3pm)			User Contributed Perl Documentation			 Jifty::DBI::Filter::SaltHash(3pm)

NAME
Jifty::DBI::Filter::SaltHash - salts and hashes a value before storing it
DESCRIPTION
This filter will generate a random 4-byte salt, and then MD5 the given value with the salt appended to the value. It will store the hash and the salt in the database, and return a data structure that contains both on decode. The salt and hash are stored in hexadecimal in the database, so that you can put them in a text field. This filter is intended for storing passwords in a database. encode Generate a random 4-byte salt, MD5 the value with the salt (encoded to hexadecimal) appended to it, and store both in the database. generate_salt Return a random 4-byte salt value, encoded as an 8-character hex string. decode Return an arrayref of (hash, salt), both as hex strings. To test whether a provided value is the same one originally encoded, use $hash eq md5_hex($value . $salt);
SEE ALSO
Jifty::DBI::Filter, Digest::MD5 perl v5.14.2 2009-12-28 Jifty::DBI::Filter::SaltHash(3pm)
Related Man Pages
md5crypt(n) - mojave
md5crypt(n) - suse
authen::passphrase::netscapemail(3pm) - debian
jifty::dbi::collection::union(3pm) - debian
jifty::dbi::record::memcached(3pm) - debian
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
How can I do this in VI editor?
Introduction
Detecting unused variables...
New UNIX and Linux History Sections