RubyRc4 is a pure Ruby implementation of the Rc4 algorithm
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gui
lib
README

README

== RubyRc4

RubyRc4 is a pure Ruby implementation of the Rc4 algorithm.

== Using

First, construct two new instances of RubyRc4 class:

  encryptor = RubyRc4.new('mysecret_key')
  decryptor = RubyRc4.new('mysecret_key')

And encrypt any string you want:

  encrypted_data = encryptor.encrypt('secret_data')
  
Or decrypt it:

  plain_text = decryptor.encrypt(encrypted_data)

Also, you can use encrypt method destructively on the original string:

    s = 'secret string'
    encryptor.encrypt!(s)

Finally, you can check equality if you want:

  plain_text.eql?('secret_data')

== Shoes GUI

Also library has Shoes GUI. You can find it in gui/main.rb

== Feedback

If you have any questions, suggestions or just want to talk, just send me email <max-prokopiev@yandex.ru> .

Enjoy!