Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb738e66

Browse files
joostrijneveldsybrenstuvel
authored andcommitted
Remove keysize requirements / recommendations
This library is probably not the right place to recommend key sizesor have discussions about the relation between key sizes and hashfunction outputs.
1 parent2a020f3 commitb738e66

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

‎doc/usage.rst

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -90,32 +90,6 @@ generate them for you, then load them in your Python code. OpenSSL
9090
generates a 4096-bit key in 3.5 seconds on the same machine as used
9191
above. See:ref:`openssl` for more information.
9292

93-
Key size requirements
94-
---------------------
95-
96-
Python-RSA version 3.0 introduced PKCS#1-style random padding. This
97-
means that 11 bytes (88 bits) of your key are no longer usable for
98-
encryption, so keys smaller than this are unusable. The larger the
99-
key, the higher the security.
100-
101-
Creating signatures also requires a key of a certain size, depending
102-
on the used hash method:
103-
104-
+-------------+-----------------------------------+
105-
| Hash method| Suggested minimum key size (bits)|
106-
+=============+===================================+
107-
| MD5| 360|
108-
+-------------+-----------------------------------+
109-
| SHA-1| 368|
110-
+-------------+-----------------------------------+
111-
| SHA-256| 496|
112-
+-------------+-----------------------------------+
113-
| SHA-384| 624|
114-
+-------------+-----------------------------------+
115-
| SHA-512| 752|
116-
+-------------+-----------------------------------+
117-
118-
11993

12094
Encryption and decryption
12195
-------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp