Class: Ciphers::Rot13
- Inherits:
-
Object
- Object
- Ciphers::Rot13
- Defined in:
- lib/crypto-toolbox/ciphers/rot13.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.apply(msg) ⇒ Object
3 4 5 |
# File 'lib/crypto-toolbox/ciphers/rot13.rb', line 3 def self.apply(msg) ::Ciphers::Rot13.new.apply(msg) end |
Instance Method Details
#apply(message) ⇒ Object
13 14 15 |
# File 'lib/crypto-toolbox/ciphers/rot13.rb', line 13 def apply() ::Ciphers::Caesar.encipher(,"N") end |
#decipher(message) ⇒ Object
20 21 22 |
# File 'lib/crypto-toolbox/ciphers/rot13.rb', line 20 def decipher() apply() end |
#encipher(message) ⇒ Object
16 17 18 |
# File 'lib/crypto-toolbox/ciphers/rot13.rb', line 16 def encipher() apply() end |