private function setSaltKey($key)
    {
        $this->setKey($key);

        if (!function_exists('mcrypt_create_iv')) {
            throw new \BadFunctionCallException('Mcrypt extension library not loaded');
        }

        $this->iv = mcrypt_create_iv(32);
    }