You are here

public static function AESEncryption::decrypt_data in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

*

Parameters

string $data - crypt response from Sagepay: * @return string

File

includes/encryption.php, line 28

Class

AESEncryption
@package miniOrange @author miniOrange Security Software Pvt. Ltd. @license GNU/GPLv3 @copyright Copyright 2015 miniOrange. All Rights Reserved.

Code

public static function decrypt_data($data, $key) {
  $strIn = base64_decode($data);
  return AESEncryption::pkcs5_unpad(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $strIn, MCRYPT_MODE_ECB));
}