function encryptPin($pan, $pwd) { $cert_path = SDK_ENCRYPT_CERT_PATH; $public_key = getPublicKey($cert_path); return EncryptedPin($pwd, $pan, $public_key); }
/** * 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); }