RSA 加解密 签名 java eclipse 工程直接运行;
eclipse中,右击工程的那个文件夹,选择最下边的属性“properties”然后点击左侧的"java build path"然后选择Libraries标签,最后点击 add external JARs 选择 javabase64-1.3.1
公钥:
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOQfwHN+cMq86BJiQ9kdhF69JbbvUUIdG7k29kRjhf18/i20kXL0sx61EzDFLEEcGIvcWOBpXb9B3fwfp3oHGjrI5NYAas09OfrMCRSBHs7q2io4WL8Ljp+Gqcwg3DoGSyQ9K0HwnkGzTdTlDgQdeBFZ8+HejciA/D/7BD/xx0ZQIDAQAB
私钥:
MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAM5B/Ac35wyrzoEmJD2R2EXr0ltu9RQh0buTb2RGOF/Xz+LbSRcvSzHrUTMMUsQRwYi9xY4Gldv0Hd/B+negcaOsjk1gBqzT05+swJFIEezuraKjhYvwuOn4apzCDcOgZLJD0rQfCeQbNN1OUOBB14EVnz4d6NyID8P/sEP/HHRlAgMBAAECgYEAyGQxce3tTFFL5Axjn3Iodt6EVRM7h2DIPX8j9X+H3A54SocUvzLS0uA21ur9KsO5jZoa6z8YsEfAEpqLN1iprkYPAluzgxi+GEIXMqMUZMRrdb3UzqwMIh70fI0/75oDRuUvpgHP5EodGe1WRujdnTlVbiGawZlsqqx1VdsG+kECQQDsrVgVQObQufFrlkugNIFqmDb/RMsEhgCtwlMdAzGOlmLyQYZa/LS94gNcrjLubuIWEZ0YuLwv0XDoVwmsv/lVAkEA3xjctScRQWr/A7J+QXxXMFfIbCj/iw4oqb6p+lrxG3rU6U3gzYETpZt+jRnZVYeH2SJjHq7Fyg9XEi+mbsJO0QJAYhaBT+WjA1RcysLyOsYn8J5/BJJlNU24EEteGMMPEdIf1dj0LtdWrO9zh0Cm2QxZZN4N5oYBcCv0CEayOschNQJAOPjAZAJ2BZ6tQOR0GYUHPvEr3XMazwfummp2Pdi7eakEdg/NOK2dtszepGnVdmIF7w05ArzfBZqlQZ+pgN9eAQJBAKyIegHWUERe/x2PXx0nFaxrsHjeysIoEGO9T4szLjkH77F+zfNA75zGY2pvmyPkSW1wxhMHS+GpVD11jKc6lDA=
公钥加密——私钥解密
加密前文字:
这是一行没有任何意义的文字,你看完了等于没看,不是吗?
加密后文字:
蘌潋?tM??瞗Mt?U
1