From 08c8374344686e44f068ca793525669ceef10ffa Mon Sep 17 00:00:00 2001 From: Nguyen Van Nguyen Date: Wed, 25 Sep 2024 10:11:42 +0700 Subject: [PATCH] WIP Signed-off-by: Nguyen Van Nguyen --- examples/key-decrypting.php | 260 ++++++++++++++++++------------------ examples/key-generation.php | 4 +- 2 files changed, 133 insertions(+), 131 deletions(-) diff --git a/examples/key-decrypting.php b/examples/key-decrypting.php index 5a81d98..fe0813f 100755 --- a/examples/key-decrypting.php +++ b/examples/key-decrypting.php @@ -4,69 +4,69 @@ use OpenPGP\OpenPGP; -$passphase = 'password'; +$passphase = 'Ax@2bGh;SxD&"A_;El%mPIvLx_!#3Aik'; $keyData = <<', 'Nguyen Van Nguyen ', ]; -$passphase = 'password'; +$passphase = Helper::generatePassword(); +echo "Generate passphase: {$passphase}" . PHP_EOL; echo 'Generate RSA private key' . PHP_EOL; $privateKey = OpenPGP::generateKey(