public static function decryptWithPassword($ciphertext, $password, $raw_binary = false) { return self::decryptInternal($ciphertext, KeyOrPassword::createFromPassword($password), $raw_binary); }
/** * @param $passwordHash * @param $token * @return array */ public static function tokenDecrypt($passwordHash, $token) { $decrypted = Crypto::decryptWithPassword($token, $passwordHash); return explode("|", $decrypted); }