public static function generateEncryptionKey($cipher)
    {
        if ($cipher === static::SUPPORTED_CIPHER_32) {
            return random_bytes(static::SUPPORTED_CIPHER_32_LENGTH);
        }

        if ($cipher === static::SUPPORTED_CIPHER_16) {
            return random_bytes(static::SUPPORTED_CIPHER_16_LENGTH);
        }
    }