Encrypt plaintext
public static encrypt ( string $plaintext, string $password, integer $cost, string $cipher = MCRYPT_RIJNDAEL_128, string $mode = MCRYPT_MODE_CBC, string $algo = 'sha256' ) : string | ||
$plaintext | string | Plaintext string to encrypt |
$password | string | Key used to encrypt data |
$cost | integer | Number of HMAC iterations to perform on key |
$cipher | string | Mcrypt cipher |
$mode | string | Mcrypt mode |
$algo | string | Hashing algorithm to use for internal operations |
return | string |