为什么人们使用 bouncycastle 而不是 Java 内置的 JCE 提供程序?有什么不同?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2927952/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why do people use bouncycastle instead of Java's built in JCE provider? What is the difference?
提问by clyfe
Why do people use bouncycastle instead of Java Cryptography Extension? What is the difference?
为什么人们使用 bouncycastle 而不是 Java Cryptography Extension?有什么不同?
采纳答案by Kevin
BouncyCastle has many more cipher suites and algorithmsthan the default JCEprovided by Sun.
BouncyCastle 拥有比Sun 提供的默认 JCE多得多的密码套件和算法。
In addition to that, BouncyCastle has lots of utilities for reading arcane formats like PEM and ASN.1 that no sane person would want to rewrite themselves.
除此之外,BouncyCastle 有许多实用程序可用于读取像 PEM 和 ASN.1 这样的神秘格式,任何理智的人都不想重写自己。
回答by ZZ Coder
On server or desktop, I don't see any reason to use BC unless you have to deal with some legacy ciphers or formats not supported by Sun JCE.
在服务器或桌面上,我看不出有任何理由使用 BC,除非您必须处理一些 Sun JCE 不支持的旧密码或格式。
However, many JREs don't come with a JCE provider, like on mobile or embedded environments. BC comes handy in such cases.
但是,许多 JRE 不附带 JCE 提供程序,例如在移动或嵌入式环境中。在这种情况下,BC 就派上用场了。
回答by Laurence R. Ugalde
Bouncy Castle is Australian in origin, and therefore is not subject to the Export of cryptography from the United States.
Bouncy Castle 原产于澳大利亚,因此不受美国密码学出口的约束。
It is useful if you are outside the United States and you need to manage key sizes grater than permitted by such that restriction. In that case you are not permitted to use software from United States for that.
如果您在美国境外并且需要管理超出此类限制所允许的密钥大小,这将非常有用。在这种情况下,您不得为此使用来自美国的软件。