triplecrypt 0.1.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/triplecrypt.rb +10 -12
  2. metadata +2 -2
@@ -1,14 +1,12 @@
1
1
  def encrypt(text)
2
- # Triple encrypted one way string encryption in ruby
3
- #
4
- # Example:
5
- # >> encrypt("foobar")
6
- # => fo1cogulSbkLw
7
- #
8
- # Arguments:
9
- # text: (String)
10
- 3.times do
11
- text = text.crypt(text)
12
- end
13
- puts text
2
+ 3.times do
3
+ text = text.crypt(text)
4
+ end
5
+ return text
6
+ end
7
+ def custom_encrypt(text, times=3)
8
+ times.times do
9
+ text = text.crypt(text)
10
+ end
11
+ return text
14
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triplecrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-05-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Triple encrypted one way string encryption in ruby, load bug fixed.
14
+ description: Triple encrypted one way string encryption in ruby
15
15
  email: slmnwise@gmail.com
16
16
  executables: []
17
17
  extensions: []