Module utils

Source
Expand description

Module for utils that does not use any of the Devolutions custom data types.

Functions§

base64_decode
base64_decode_url
base64_encode
base64_encode_url
constant_time_equals
derive_key_argon2
Derives a password or key into a new one using Argon2.
derive_key_pbkdf2
Derives a password or key into a new one using PBKDF2.
generate_key
Returns a random key of the specified length. Can also be used whenever you need a random byte array, like for a salt.
scrypt_simple
Temporarly binded here for a specific use case, don’t rely on this.
validate_header
Only validate the header to make sure it is valid. Used to quickly determine if the data comes from the library.