Browse files

updated README with link to a DES document

  • Loading branch information...
Robert Sosinski
Robert Sosinski committed Aug 3, 2008
1 parent 0b436c0 commit c548abc958d561abe9b8d73c5b0b9e442e650009
Showing with 4 additions and 1 deletion.
  1. +3 −0 README
  2. +1 −1 lib/ruby-des.rb
@@ -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
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.
@@ -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.