rsa-encrypter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -4
- data/lib/rsa-encrypter/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -20,11 +20,13 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
example to use :
|
22
22
|
|
23
|
-
key = generate_rsa
|
24
23
|
|
25
|
-
|
24
|
+
key = Rsa::Encrypter.generate_rsa
|
25
|
+
|
26
|
+
puts "your message ?"
|
27
|
+
|
26
28
|
print "=> "; m = gets.chomp
|
27
29
|
|
28
|
-
e = encrypt(m, key[1], key[0])
|
30
|
+
e = Rsa::Encrypter.encrypt(m, key[1], key[0])
|
29
31
|
|
30
|
-
puts decrypt(e, key[2], key[0])
|
32
|
+
puts Rsa::Encrypter.decrypt(e, key[2], key[0])
|