String Encryption Functions | |
---|---|
crc32() | |
integer crc32(string $sMessage) | |
This function returns the cyclic redundancy checksum polynomial value of $sMessage. This is used for error detection when transmitting data. | |
Argument | Description |
string $sMessage | This is the string for which the checksum is calculated. |
crypt() | |
string crypt(string $sMessage, string $sSalt = default) | |
This function returns the hashed string for $sMessage, applying the $sSalt string. The following encryption algorithms are available:
|
|
Argument | Description |
string $sMessage | This is the string for which the hashed string is being created. |
string $sSalt | This is the string that is used to encode the message. |
md5() | |
string md5(string $sMessage, bool $bOutputRaw = false) | |
This function returns md5 hash of $sMessage. | |
Argument | Description |
string $sMessage | This is the string for which the hash is calculated. |
bool $bOutputRaw | This determines whether the digest should be returned instead. |
metaphone() | |
string metaphone(string $sMessage, integer $iLimitToPhonemes = 0) | |
This function returns the metaphone key of $sMessage. | |
Argument | Description |
string $sMessage | This is the string for which the metaphone is calculated. |
integer $iLimitToPhonemes | This determines whether returned string length. The value 0 means that there is no limit. |
sha1() | |
string sha1(string $sMessage, bool $bOutputRaw = false) | |
This function returns sha1 hash of $sMessage. | |
Argument | Description |
string $sMessage | This is the string for which the hash is calculated. |
bool $bOutputRaw | This determines whether the digest should be returned instead. |
soundex() | |
string soundex(string $sMessage) | |
This function returns the soundex key of $sMessage. | |
Argument | Description |
string $sMessage | This is the string for which the soundex is calculated. |
str_rot13() | |
string str_rot13(string $sMessage) | |
This function returns the rot13 encoding of $sMessage. | |
Argument | Description |
string $sMessage | This is the string for which the rot13 is calculated. |
© 20072024 XoaX.net LLC. All rights reserved.