pass_encrypt


Description:

public uint8[]? pass_encrypt (uint8[] plaintext, uint8[]? passphrase, out ErrEncryption error)

Encrypts the given data with the given passphrase.

The output array must be at least plaintext_len + pass_encryption_extra_length bytes long. This delegates to PassKey.PassKey.derive and PassKey.encrypt.

Parameters:

plaintext

A byte array of length plaintext.length.

passphrase

The user-provided password. Can be empty.

Returns:

ciphertext on success.


Namespace: ToxEncryptSave
Package: toxcore