leehinkleman
Programmer
Can PHP encrypt a string using the public key, of a public and private key set?
Alternatively, how can I hide the private $key if mcrypt is used, as in
$enc=mcrypt_encrypt($c_alg,$key,$str,MCRYPT_MODE_CBC,$iv);
and if $key has to be readable in the php script?
Thanks for your help.
Alternatively, how can I hide the private $key if mcrypt is used, as in
$enc=mcrypt_encrypt($c_alg,$key,$str,MCRYPT_MODE_CBC,$iv);
and if $key has to be readable in the php script?
Thanks for your help.