Gen. partnerAlgotech

PHP function crypt()

One-way string encryption (hashing)

|
September 11, 2019

Availability in PHP 4.0

One-way string encryption (hashing)

Parameters

Parameter Data type Default value Note
$str string not The string to be encrypted.
$salt string null An optional salt string to base the encryption on. If not provided, one will be randomly generated by PHP each time you call this function. PHP 5.6 or later raise E_NOTICE error if this parameter is omitted

Return values

string

the encrypted string.

Other resources

Official crypt documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.