Skip to content

Environment Variables

TS_SODIUM_SECRET_KEY

64 character key used to encrypt values using the PHP Sodium extension.

Generating a key

Run the following PHP script to generate a key:

php
<?php
    $key = sodium_crypto_secretbox_keygen();
    var_dump( sodium_bin2hex( $key ) );