openssl_public_encrypt encrypted data is every time different
Posted
by panny
on Stack Overflow
See other posts from Stack Overflow
or by panny
Published on 2010-06-05T10:37:09Z
Indexed on
2010/06/05
10:42 UTC
Read the original article
Hit count: 232
why is the content of $encrpyted every time different?
// aquire public key from server
$server_public_key = openssl_pkey_get_public(file_get_contents("C:\publickey.pem"));
// rsa encrypt
openssl_public_encrypt("123", $encrypted, $server_public_key);
© Stack Overflow or respective owner