The examples were created with the MyWAY SQL manager: Download
How to use the RANDOM_BYTES() function in MySQL and MariaDB databases
The RANDOM_BYTES() function in MySQL and MariaDB is used to generate a specified number of random bytes. The function takes an integer parameter representing the number of bytes to generate and returns a binary string of random bytes that can be used in applications where random data needs to be generated, for example for random encryption keys, when creating random salts for password hashing, or to generate random tokens for session management or authentication purposes.
The function is available from MySQL version 8.0.13 and MariaDB version 10.10 or higher.
Further MySQL und MariaDB SQL Encryption & Compression