为了账号安全,请及时绑定邮箱和手机立即绑定

java加密 KeyGenerator的Provider参数怎么用?

java加密 KeyGenerator的Provider参数怎么用?

慕田峪9158850 2018-09-05 21:18:22
java加密 KeyGenerator的Provider参数怎么用?
查看完整描述

1 回答

?
心有法竹

TA贡献1866条经验 获得超5个赞

KeyGenerator 可用的算法在 Java 文档中可以查到:
Java Cryptography Architecture Standard Algorithm Name Documentation

摘抄表格如下

Algorithm NameDescription
AESKey generator for use with the AES algorithm.
ARCFOURKey generator for use with the ARCFOUR (RC4) algorithm.
BlowfishKey generator for use with the Blowfish algorithm.
DESKey generator for use with the DES algorithm.
DESedeKey generator for use with the DESede (triple-DES) algorithm.
HmacMD5Key generator for use with the HmacMD5 algorithm.
HmacSHA1, HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512Keys generator for use with the various flavors of the HmacSHA algorithms.
RC2Key generator for use with the RC2 algorithm.

Provider 大概是根据算法名称提供算法的一个提供程序,你可以参考一下 Java Cryptography Architecture (JCA) Reference Guide 中的相关章节。一般情况下不需要自己去实现 Provider。


查看完整回答
反对 回复 2018-09-16
  • 1 回答
  • 0 关注
  • 741 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号