Permalink
Browse files

updated README

  • Loading branch information...
1 parent c36560f commit 15060808bc6c30d2c5045a79e05d77555269ab7d Robert Sosinski committed Aug 4, 2008
Showing with 4 additions and 4 deletions.
  1. +2 −2 README
  2. +2 −2 lib/ruby-des.rb
View
4 README
@@ -4,8 +4,8 @@ Ruby-DES is a full Ruby implementation of the Data Encryption Standard. The pur
project was to allow Ruby programmers interested in cryptography a glimpse of how a robust
cryptographic algorithm functions in a language they understand.
-The best way to understand the RubyDES source code is by following along with a DES document,
-which you can find at http://www.comms.scitech.susx.ac.uk/fft/crypto/des_algorithm_details.txt
+The best way to understand the RubyDES source code is by following along with a FIPS 46,
+which you can find at http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf
NOTE: DES is deprecated, and as such, you should not use this implementation in any project you
are developing. I highly recommend the AES, TwoFish or Serpent algorithms through the OpenSSL
View
4 lib/ruby-des.rb
@@ -9,12 +9,12 @@ module RubyDES
0x3c, 0x34, 0x2c, 0x24, 0x1c, 0x14, 0x0c, 0x04,
0x3e, 0x36, 0x2e, 0x26, 0x1e, 0x16, 0x0e, 0x06,
0x40, 0x38, 0x30, 0x28, 0x20, 0x18, 0x10, 0x08]
-
+
IP_R = [0x39, 0x31, 0x29, 0x21, 0x19, 0x11, 0x09, 0x01,
0x3b, 0x33, 0x2b, 0x23, 0x1b, 0x13, 0x0b, 0x03,
0x3d, 0x35, 0x2d, 0x25, 0x1d, 0x15, 0x0d, 0x05,
0x3f, 0x37, 0x2f, 0x27, 0x1f, 0x17, 0x0f, 0x07]
-
+
FP = [0x28, 0x08, 0x30, 0x10, 0x38, 0x18, 0x40, 0x20,
0x27, 0x07, 0x2f, 0x0f, 0x37, 0x17, 0x3f, 0x1f,
0x26, 0x06, 0x2e, 0x0e, 0x36, 0x16, 0x3e, 0x1e,

0 comments on commit 1506080

Please sign in to comment.