crypt.seal

Documentation of Synapse Z crypt.seal library

crypt.seal.keygen

(string, string) crypt.seal.keygen()

generates libsodioum cryptography seal public and secret key

crypt.seal.encrypt

string crypt.seal.encrypt(data: string, public_key: string)

encrypts the data using libsodium box_seal, which could only be decrypted with the secret key

crypt.seal.decrypt

string crypt.seal.decrypt(data: string, public_key; string, secret_key: string)

decrypts the data generated using crypt.seal.encrypt