Skip to content

Commit 17b4680

Browse files
committed
README Modification
1 parent 1917339 commit 17b4680

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,16 @@ object is then encrypted using the RSA *private key* encryption, and the encrypt
4444
The following steps are the serialization of the RSA *keys*, which are serialized using the **PEM** encoding, as a
4545
traditional **OpenSSH** format and using the **AES-256-CBC** as the encryption algorithm for the *private key*.
4646

47-
The decryption process is much simpler and follows just a few steps. The first one
47+
The decryption process is much simpler and follows just a few steps. The first step, it's to load encrypted data into
48+
the program memory. After this, the next step is to deserialize the RSA *private key* and load it into program memory.
49+
To complete the decryption process, the AES *keys* need to be deserialized and also loaded into program memory.
50+
51+
The AES *keys* deserialization starts by loading the encrypted content of the json file into memory. After loaded, the
52+
data is decrypted using the RSA *private key*, and the byte object is turned back into a Python object, which contains
53+
the AES *key* and *iv* that will be used for decrypting the file.
54+
55+
Finalizing the decryption process, the file's data is decrypted, using the previously deserialized AES *keys*, and
56+
unpadded. After the decryption process, the data is written back into the original encrypted file.
4857

4958
---
5059

0 commit comments

Comments
 (0)