module Crypt

Extended Modules

Defined in:

client/crypt.cr

Instance Method Summary

Instance Method Detail

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

Decrypts data using the cipher provided


[View source]
def decryptor(cipher : String, key : Bytes) #

Creates a decryption cipher using the secret provided


[View source]
def encrypt(cipher : OpenSSL::Cipher, data : Bytes) #

Encrypts data using the cipher provided


[View source]
def encryptor(cipher : String, key : Bytes) #

Creates an encryption cipher using the secret provided


[View source]
def generate_server_hash(server_id : String, shared_secret : Bytes, public_key : Bytes) #

Generates a server hash for authentication with custom hexadecimal representation


[View source]
def generate_shared_secret #

Generates a new 16-byte shared secret


[View source]