rsa-encrypter 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +5 -1
- data/lib/rsa-encrypter/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -26,9 +26,13 @@ Or install it yourself as:
|
|
26
26
|
|
27
27
|
example to use :
|
28
28
|
|
29
|
-
generate public and private key
|
29
|
+
generate public and private key
|
30
30
|
|
31
31
|
key = Rsa::Encrypter.generate_rsa
|
32
|
+
|
33
|
+
or you can set the both prime numbers manualy, default is 1033, 977 when the both numbers are smaller than is the encrypter faster but lee secure
|
34
|
+
|
35
|
+
key = Rsa::Encrypter.generate_rsa(11, 13)
|
32
36
|
|
33
37
|
a sample message to encrypting (m)
|
34
38
|
|