Browse files

Presentation slides

  • Loading branch information...
1 parent 7da5fd3 commit 362e4f1caa58864166fc81fa790cbb35486c944f @chrishulbert committed Jul 14, 2010
Showing with 1 addition and 0 deletions.
  1. BIN ruby/Roro Sydney Ruby Crypto Presentation.pptx
  2. +1 −0 ruby/ruby_rsa.rb
View
BIN ruby/Roro Sydney Ruby Crypto Presentation.pptx
Binary file not shown.
View
1 ruby/ruby_rsa.rb
@@ -122,6 +122,7 @@ def bignum_to_str(n)
m = str_to_bignum("This is going to be embarrasing if it doesn't work!")
c = mod_pow(m,e,n) # Encrypting is: c = m^e mod n
puts "Message:\r\n " + bignum_to_str(m)
+puts "Message hex:\r\n %x" % m
puts "Encrypted:\r\n %x" % c
# Now decrypt it using d and n:

0 comments on commit 362e4f1

Please sign in to comment.