Class: EncryptV
- Inherits:
-
Object
- Object
- EncryptV
- Defined in:
- lib/encryptvigen/encryptv.rb
Overview
Archivo encrypt_v/lib/encryptvigen/encryptv.rb
Instance Method Summary collapse
- #decrypt(encrypted_msg, key) ⇒ Object
-
#encrypt(msg, key) ⇒ Object
Metodos publicos.
Instance Method Details
#decrypt(encrypted_msg, key) ⇒ Object
11 12 13 14 15 |
# File 'lib/encryptvigen/encryptv.rb', line 11 def decrypt(encrypted_msg, key) # Metodo para desencriptar un mensaje new_key = extend_key(encrypted_msg, key) algorithm_decrypt_v(encrypted_msg,new_key) end |
#encrypt(msg, key) ⇒ Object
Metodos publicos
6 7 8 9 |
# File 'lib/encryptvigen/encryptv.rb', line 6 def encrypt(msg, key) # Metodo para encriptar un mensaje algorithm_encrypt_v(msg,key) end |