module Crypt
Extended Modules
Defined in:
client/crypt.crInstance Method Summary
-
#decrypt(cipher : OpenSSL::Cipher, data : Bytes)
Decrypts data using the cipher provided
-
#decryptor(cipher : String, key : Bytes)
Creates a decryption cipher using the secret provided
-
#encrypt(cipher : OpenSSL::Cipher, data : Bytes)
Encrypts data using the cipher provided
-
#encryptor(cipher : String, key : Bytes)
Creates an encryption cipher using the secret provided
-
#generate_server_hash(server_id : String, shared_secret : Bytes, public_key : Bytes)
Generates a server hash for authentication with custom hexadecimal representation
-
#generate_shared_secret
Generates a new 16-byte shared secret
Instance Method Detail
def encryptor(cipher : String, key : Bytes)
#
Creates an encryption cipher using the secret provided