本文整理汇总了Java中fr.cryptohash.SHA512类的典型用法代码示例。如果您正苦于以下问题:Java SHA512类的具体用法?Java SHA512怎么用?Java SHA512使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SHA512类属于fr.cryptohash包,在下文中一共展示了SHA512类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: testSHA512
import fr.cryptohash.SHA512; //导入依赖的package包/类
/**
* Test SHA-512 implementation.
*/
private static void testSHA512()
{
Digest dig = new SHA512();
testKat(dig, "abc",
"ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a"
+ "2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f");
testKat(dig, "abcdefghbcdefghicdefghijdefghijkefghijklfghij"
+ "klmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnop"
+ "qrsmnopqrstnopqrstu",
"8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018"
+ "501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909");
testKatMillionA(dig,
"e718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973eb"
+ "de0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b");
reportSuccess("SHA-512");
}
开发者ID:muhatzg,项目名称:burstcoin,代码行数:22,代码来源:TestDigest.java
示例2: testSHA512
import fr.cryptohash.SHA512; //导入依赖的package包/类
@Test
public void testSHA512() {
Digest dig = new SHA512();
testKat(dig, "abc",
"ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a"
+ "2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f");
testKat(dig, "abcdefghbcdefghicdefghijdefghijkefghijklfghij"
+ "klmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnop"
+ "qrsmnopqrstnopqrstu",
"8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018"
+ "501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909");
testKatMillionA(dig,
"e718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973eb"
+ "de0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b");
reportSuccess("SHA-512");
}
开发者ID:jnorthrup,项目名称:sphlib,代码行数:19,代码来源:SHA512Test.java
注:本文中的fr.cryptohash.SHA512类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论