rsa-encrypter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
|