src/SaveHandler/Database/CryptDatabase.php
protected function generateKey($key)
    {
        $keySize = openssl_cipher_iv_length(static::CRYPT_MODE);
        $key     = hash(
            'SHA256', $this->options->getClassName() . ':' . $this->sessionName . ':' . $key, true
        );

        return substr($key, 0, $keySize);
    }
protected function generateKey($key)
    {
        $keySize = openssl_cipher_iv_length(static::CRYPT_MODE);
        $key     = hash(
            'SHA256', $this->options->getClassName() . ':' . $this->sessionName . ':' . $key, true
        );

        return substr($key, 0, $keySize);
    }
Generate secret key.

@param string $key

@return string Generated secret key