File: README.md

package info (click to toggle)
ruby-rc4 0.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 72 kB
  • ctags: 6
  • sloc: ruby: 74; makefile: 2
file content (50 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# RC4

RC4 is a pure Ruby implementation of the Rc4 algorithm.


## Usage

First require the gem:

    require 'rc4' 

To encrypt:

    key = "nuff rspec"
    enc = RC4.new(key)
    encrypted = enc.encrypt("super-cool-test")

To decrypt:

    dec = RC4.new(key)
    decrypted = dec.decrypt(encrypted)

Since encrypt method is used for encryption and decryption, decrypt is
just an alias to encrypt in order to make the usage more intuitive.

# Note

The original algorithm implementation in Ruby by Max Prokopiev
<max-prokopiev@yandex.ru>.

Aleksandar Simic then modified it to include a test suite and gem
packaged it using gem-this.
<asimic@gmail.com>


I switched the project to use rspec2 and am the now the project's primary maintainer.

Caige Nichols <caigesn@gmail.com>

# License

Ruby-RC4 is released under the MIT license.

# Contributors

(Please let me know if I missed anyone)

- [caiges](http://github.com/caiges)
- [juggler](http://github.com/juggler) (original author)
- Alexandar Simic