mirror of
https://github.com/billbuchanan/appliedcrypto.git
synced 2026-02-21 11:18:02 +00:00
Update README.md
This commit is contained in:
@@ -533,10 +533,11 @@ A simple RSA program to encrypt and decrypt with RSA is given next. Prove its op
|
||||
```python
|
||||
import rsa
|
||||
(bob_pub, bob_priv) = rsa.newkeys(512)
|
||||
ciphertext = rsa.encrypt('Here is my message', bob_pub)
|
||||
ciphertext = rsa.encrypt('Here is my message'.encode(), bob_pub)
|
||||
message = rsa.decrypt(ciphertext, bob_priv)
|
||||
print(message.decode('utf8'))
|
||||
```
|
||||
A sample [here](https://repl.it/@billbuchanan/rsanew01#main.py)
|
||||
|
||||
## F PGP
|
||||
### F.1
|
||||
|
||||
Reference in New Issue
Block a user