Top Level Namespace
Instance Method Summary collapse
Instance Method Details
#custom_encrypt(text, times = 3) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/triplecrypt.rb', line 7 def custom_encrypt(text, times=3) times.times do text = text.crypt(text) end return text end |
#encrypt(text) ⇒ Object
1 2 3 4 5 6 |
# File 'lib/triplecrypt.rb', line 1 def encrypt(text) 3.times do text = text.crypt(text) end return text end |