module

Crypt

Instance methods

decrypt(cipher : OpenSSL::Cipher, data : Bytes)

Decrypts data using the cipher provided

Source
decryptor(cipher : String, key : Bytes)

Creates a decryption cipher using the secret provided

Source
encrypt(cipher : OpenSSL::Cipher, data : Bytes)

Encrypts data using the cipher provided

Source
encryptor(cipher : String, key : Bytes)

Creates an encryption cipher using the secret provided

Source
generate_server_hash(server_id : String, shared_secret : Bytes, public_key : Bytes)

Generates a server hash for authentication with custom hexadecimal representation

Source
generate_shared_secret

Generates a new 16-byte shared secret

Source