예제 #1
0
 function decryptDataUAM($data, $key, $status = "1")
 {
     if ($status == "1") {
         $key = $this->GenerateSecretKeyUAM($key);
     }
     $objRC4 = new RC4();
     $rc4Data = $this->hex2bin($data);
     $decryptData = $objRC4->rc4_decrypt($key, $rc4Data);
     return $decryptData;
 }