[Flow] How to use RsaWalletServicePhp
Peter R
peter at webschuppen.com
Mon Mar 24 13:07:11 CET 2014
Hello Pankaj,
thank for your help. Your advice helped me alot. Now I can use RSA.
On my local webserver it stops executing code, but on live is everything fine.
(Xampp error: stackoverflow.com/questions/16628102/php-openssl-openssl-private-encrypt-crashes-webpage)
I did the following steps:
delete RsaWalletData folder in Data/Persistent
open cmd (Windows)
cd C:\xampp\htdocs\flow-project
flow security:importprivatekey < pk.txt
(cmd displays uuid)
$uuid = '1234566789';
$plaintext = 'example';
$encrypt = $this->rsaWalletServicePhp->encryptWithPublicKey($plaintext, $uuid);
$decrypt = $this->rsaWalletServicePhp->decrypt($encrypt, $uuid);
var_dump($encrypt);
var_dump($decrypt);
die();
Peter
More information about the Flow
mailing list