1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
public function decryptData( $encryptData, $key = '' ) { $encryptData = base64_decode($encryptData); $md5LowerKey = strtolower(md5($key)); $decrypted = openssl_decrypt($encryptData, 'AES-256-ECB', $md5LowerKey, OPENSSL_RAW_DATA); return $decrypted; }
|