Module safe_app::utils[][src]

Utility functions.

Modules

seed

Seed utilities.

test_utils

Common utility functions for writing test cases.

Traits

FutureExt

Additional future combinators.

Functions

derive_secrets

Derive Password, Keyword and PIN (in order).

generate_random_string

Generates a String from length random UTF-8 chars. Note that the NULL character will be excluded to allow conversion to a CString if required, and that the actual len() of the returned String will likely be around 4 * length as most of the randomly-generated chars will consume 4 elements of the String.

generate_random_vector

Generate a random vector of given length.

generate_readable_string

Generates a readable String using only ASCII characters.

symmetric_decrypt

Symmetric decryption

symmetric_encrypt

Symmetric encryption. If nonce is None, then it will be generated randomly.