牙叔教程 简单易懂
参照在线网址
1. 生成密钥对
RSA加密公钥
-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArvT9hNmRwrVocf7Ks4Mp tgW6xweQWzQQGcwmHwAd/zSlkQmBp7gLisSZneTCRYIhC/bOFTn72bdoGE2Tq880 uVyECml/MXQGdmGse3ZUlHVgO13S72GJtCyFQ3VNzPEVLsQ3M1p8Kjr29DsW7G0a LIpQ+csR1YSezp8i+QTmqc3QH9qmSsXdLUU9NSuX4FYZ/3pLtkug6mDjv02mjtOp ndiWGZV1xagm0gW/wd2gZ8aANbaddV894VfcpGHwJowd9JXHw1mvmCyG3wmzRkp1 lha2eQzaMPwK5jFoAnIeCVKn1OwS1D9qEX88YNrtt0EktyHg87Tvatm3cRCg0vOw OwIDAQAB -----END PUBLIC KEY-----
RSA加密私钥
-----BEGIN PRIVATE KEY----- MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCu9P2E2ZHCtWhx /sqzgym2BbrHB5BbNBAZzCYfAB3/NKWRCYGnuAuKxJmd5MJFgiEL9s4VOfvZt2gY TZOrzzS5XIQKaX8xdAZ2Yax7dlSUdWA7XdLvYYm0LIVDdU3M8RUuxDczWnwqOvb0 OxbsbRosilD5yxHVhJ7OnyL5BOapzdAf2qZKxd0tRT01K5fgVhn/eku2S6DqYOO/ TaaO06md2JYZlXXFqCbSBb/B3aBnxoA1tp11Xz3hV9ykYfAmjB30lcfDWa+YLIbf CbNGSnWWFrZ5DNow/ArmMWgCch4JUqfU7BLUP2oRfzxg2u23QSS3IeDztO9q2bdx EKDS87A7AgMBAAECggEATEiXzXgL3Oi6DJI6kYDMDAh9gtBiedG+f3EK4hNsAN1U n2OUu6s8pRnJnRWkOyhc/llzS8AHdstIQOh6Tbw/0d5r2BpdkhNzyeQWj5JtmHmB JwFmumc94mhTBrG75XLseIKnSuXWI5eoG580BIwhkHASlIedVArKL28lkYw4gqp4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加密内容
牙叔教程
加密结果
hfGcwRX1or5IuqNyjpWKvUeLyMMOwFG8pC3kLQaZTfieVm1zsfZ+ve+cWP4V/dOP3Y9Tt9jEYH3QBcLiY0DCSXuQKEIFt6FLEUp2aHCXk+/utB3/RG8vIxmhcJYEQILy2cb0xOa3dB78ARUnlf5rAT3UQ/Cv98X7K9IX/uLQJ0/Qm7EhduGTDbLVl4SoavdBmzGfkI0Ng8YZRlABWOLbjDRIITok95foC+SKLsVyeATLeDKNfBMrha6N5/JNp3bmH5dHlcNDN2PzTdjEsPGC40IqJOOlSCamUmz67YXvoACgNU2pQpTLrx3ASH9rSgq9dgMirIg2nvNfB3x9fiDDwQ==
3. 使用私钥解密
参考
autojs效果
环境
手机: Mi 11 Pro
Android版本: 11
Autojs版本: 9.0.11
名人名言
思路是最重要的, 其他的百度, bing, stackoverflow, github, 安卓文档, autojs文档, 最后才是群里问问
--- 牙叔教程
声明
部分内容来自网络
本教程仅用于学习, 禁止用于其他用途