适用于 BlackBerry 的 BouncyCastle RSA 加密
如何为 BlackBerry 应用程序实施 BouncyCastle RSA 加密?
How do I implement BouncyCastle RSA encryption for a BlackBerry application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如 @itsteju 指出的,您可以使用 BlackBerry 方法获得相同的功能,但这确实需要与 Certicom 达成协议并向其支付特许权使用费。
Bouncy Castle 在其发布页面上维护 J2ME 兼容版本。 这不是他们的完整 API,但支持 RSA 加密。
由于他们提供源代码,将其 RSA 代码集成到您的项目中的最简单方法是将其 .java 源文件添加到您的项目中并进行构建。 我记得(我没有现成的源代码)他们在 java.lang 包中提供了一些类(例如 BigInteger) - 或者至少他们曾经这样做过。 黑莓不会让您的应用程序与这些一起运行,因此您必须重命名该包以及您下载的源中对其的所有引用。 请注意,我上次这样做是几年前的事了,所以事情可能已经发生了变化。
As @itsteju points out, you can get the same functionality using the BlackBerry methods, but that does require an agreement and a royalty payment to Certicom.
Bouncy Castle maintains a J2ME compatible release on their releases page. It's not their full API, but does support RSA encryption.
As they provide source, the easiest way to integrate their RSA code into your project is to add their .java source files to your project and build. As I remember (I don't have the source readily available) they provide some classes in the java.lang package (BigInteger for example) - or at least they used to. The BlackBerry won't let your application run with these, so you'll have to rename the package and all references to it in the source you download. Note that last time I did this was a few years ago so things may have changed.
有一组标准方法可用于 RSA 加密。 检查 API 文档了解这一点。
这些已获得 Certicom 许可。 在使用 RSA 加密之前,您需要获取从 Certicom 购买的密钥。
There is standard set of methods available for RSA encryption. Check API docs for this.
Those are licenced with Certicom. You need to get the keys purchased from Certicom before using RSA encryption.