質問編集履歴
1
申し訳ありません.修正いたしました.
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,8 +7,9 @@
|
|
7
7
|
よろしくお願いいたします.
|
8
8
|
```Python
|
9
9
|
from Crypto.PublicKey import RSA
|
10
|
+
bobKey = RSA.generate(1024)
|
10
|
-
|
11
|
+
bobPK = bobKey.publickey()
|
11
|
-
encrypted_message =
|
12
|
+
encrypted_message = bobPK.encrypt(secret_message, 32)
|
12
13
|
```
|
13
14
|
|
14
15
|
|