GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

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

Jifty::DBI::Filter::SaltHash - salts and hashes a value before storing it

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.

Generate a random 4-byte salt, MD5 the value with the salt (encoded to hexadecimal) appended to it, and store both in the database.

Return a random 4-byte salt value, encoded as an 8-character hex string.

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);

Jifty::DBI::Filter, Digest::MD5
2014-05-29 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.