Skip to content
Browse files

updated README with link to a DES document

  • Loading branch information...
1 parent 0b436c0 commit c548abc958d561abe9b8d73c5b0b9e442e650009 Robert Sosinski committed Aug 2, 2008
Showing with 4 additions and 1 deletion.
  1. +3 −0 README
  2. +1 −1 lib/ruby-des.rb
View
3 README
@@ -4,6 +4,9 @@ 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
+
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
library instead.
View
2 lib/ruby-des.rb
@@ -64,7 +64,7 @@ class Block
def initialize(input)
if input.is_a?(String)
- raise "RubyDES::InvalidStringLength: Input Array must contain (8) characters." unless input.length.eql?(8)
+ raise "RubyDES::InvalidStringLength: Input String must contain (8) characters." unless input.length.eql?(8)
@string = input
@bit_array = input.unpack('B*').join.split('').collect{|b| b.to_i}

0 comments on commit c548abc

Please sign in to comment.
Something went wrong with that request. Please try again.