ONO_Lib_Data_Crypt allows to crypt data, which is mostly useful when creating password hashes for example.
Decrypt a password or a string using RC4. Not recommended for passwords, better use SHA instead.
Detect the location of the openssl binary
Encrypt a password or a string using RC4. Not recommended for passwords, better use SHA instead.
Encrypt a file using RC4.
Decode a CRT file, using openssl
ONO_Lib_Data_Crypt->pwdchk($password,$password_hash) will check if $password and $password_hash match.
ONO_Lib_Data_Crypt->pwdhash($password) will return the hash for $password, using random salt (great for generating a password hash)
ONO_Lib_Data_Crypt->pwdhash($password,$salt) will return the hash for $password, using $salt (can be used to see if a hash is valid, this is also used by pwdchk - see below)
ONO's max hash length is 32 chars.
encryption types:
length 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
sha256 $5$AA$I7/f0PluP/ZHZU.bJPe7mGd/8Wa9yVWcPXSD40ClWHB -> 50 required sha512 $6$AA$ctPS1XAv.jVOmzBozr7JJtTV1r5oZR9Nh6YjsSQbg7tXweluVh3FBu8riEPQSLP.leDtft5aVmLdMnAidJnxa/ -> 92 required
Generate a password salt, return it as a string.
Generate a strong password hash.
Test if strong password encryption is working on the current system.
Test if strong password encryption is working on the current system.
The following modules may be optional, but they are probably required for all features to work properly.