Skip to content

Commit

Permalink
Replaced OpenSSL rsautl command with pkeyutl.
Browse files Browse the repository at this point in the history
  • Loading branch information
gorankarlic committed Apr 8, 2024
1 parent 5bb02cf commit a12c72c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ cat public.txt
Encrypt the message using the public key:

```sh
openssl rsautl -encrypt -pubin -inkey public.txt -in message.txt -out encrypted.bin
openssl pkeyutl -encrypt -pubin -inkey public.txt -in message.txt -out encrypted.bin
```

#### 4.3.2 Show encrypted ciphertext
Expand All @@ -403,7 +403,7 @@ base64 encrypted.bin
Decrypt the ciphertext using the private key:

```sh
openssl rsautl -decrypt -inkey private.txt -in encrypted.bin -out decrypted.txt
openssl pkeyutl -decrypt -inkey private.txt -in encrypted.bin -out decrypted.txt
```

#### 4.3.4 Show decrypted message
Expand Down

0 comments on commit a12c72c

Please sign in to comment.