PHP code example of houseme / wxpay
1. Go to this page and download the library: Download houseme/wxpay library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
houseme / wxpay example snippets
rust
use wxpay_rs::cipher::RsaCipher;
// 加密敏感信息
let encrypted = RsaCipher::encrypt_with_certificate(
"敏感信息",
&platform_certificate,
)?;
// 解密敏感信息
let decrypted = RsaCipher::decrypt_with_private_key(
&encrypted_data,
&merchant_private_key,
)?;