Class: EncryptV

Inherits:
Object
  • Object
show all
Defined in:
lib/encryptvigen/encryptv.rb

Overview

Archivo encrypt_v/lib/encryptvigen/encryptv.rb

Instance Method Summary collapse

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