コード例 #1
0
ファイル: secureUtil.php プロジェクト: ChainBoy/wxfx
function encryptPin($pan, $pwd)
{
    $cert_path = SDK_ENCRYPT_CERT_PATH;
    $public_key = getPublicKey($cert_path);
    return EncryptedPin($pwd, $pan, $public_key);
}
コード例 #2
0
ファイル: Secure.php プロジェクト: dreamsxin/PHP_HelpPay
 /**
  * pin 加密
  *
  * @param unknown_type $pan
  * @param unknown_type $pwd
  * @return Ambigous <number, string>
  */
 public static function encryptPin($pan, $pwd)
 {
     $cert_path = Config::SDK_ENCRYPT_CERT_PATH;
     $public_key = self::getPublicKey($cert_path);
     return EncryptedPin($pwd, $pan, $public_key);
 }