RSA加密2048
用這個網站生成2048位的RSA公私鑰
http://travistidwell.com/jsencrypt/demo/
?
用這個網站把PKCS#1的密鑰變成PKCS8的密鑰。
http://tool.chacuo.net/cryptrsapkcs1pkcs8
修改密文長度
? ?/**
? ? ?* RSA最大加密明文大小
? ? ?*/
? ?private static final int MAX_ENCRYPT_BLOCK = 245;
?
? ?/**
? ? ?* RSA最大解密密文大小
? ? ?*/
? ?private static final int MAX_DECRYPT_BLOCK = 256;
總結
- 上一篇: 空间相关分析与SDM
- 下一篇: [GIS原理] 10.1 空间统计描述(