Module rustream::squire::secure

source ·
Expand description

Module for the functions that handle encryption/encoding and decryption/decoding.

Functions§

  • Decodes a Base64-encoded string to its original binary representation.
  • Encodes a binary string to a Base64-encoded ASCII string.
  • Calculates the SHA-512 hash value for the given payload.
  • Decodes a hexadecimal-encoded string into its original string representation.
  • Encodes a string value into a hexadecimal representation.
  • Generates a random key with a length of 64 characters from the specified character set.