最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【整理】加密算法blowfish和sha1的区别

EncryptDecrypt crifan 3290浏览 0评论

【背景】

折腾:

【已解决】OpenFire中无法使用自定义数据库中用户去登陆

期间,

看到一些加密算法:

Bluefish:

在Openfire安装配置期间,看到的:

during openfire config see blowfish

配置参数加密方式:Blowfish还是AES

 

后来在折腾Openfire加载已有数据库期间,遇到:

JDBC用户名的密码的类型:

jdbcAuthProvider.passwordType

有几种:

plain(文本),md5,sha1,sha256,sha512

 

JDBCAuthProvider.PasswordType (Openfire 3.10.2 Javadoc)

Enum Constant and Description

md5

The password is stored as a hex-encoded MD5 hash.

plain

The password is stored as plain text.

sha1

The password is stored as a hex-encoded SHA-1 hash.

sha256

The password is stored as a hex-encoded SHA-256 hash.

sha512

The password is stored as a hex-encoded SHA-512 hash.

然后对于这些加密算法,有点搞不清楚,所以去查查。

 

【折腾过程】

1.搜:

blowfish sha1 区别

找到:

对称加密和非对称加密介绍和区别 – 小袋子的IT部落 – ITeye技术网站

 

【总结】

加密算法,大类分三种:

  • 对称加密算法:DES、3DES、Blowfish、IDEA、RC4、RC5、RC6和AES
  • 非对称加密算法:RSA、ECC(移动设备用)、Diffie-Hellman、El Gamal、DSA(数字签名用)
  • hash加密:MD2、MD4、MD5、HAVAL、SHA(SHA1,SHA256,SHA512)

 

所以:

我此处关系的:

blowfish是对称加密,和SHA1(以及从属于hash加密的SHA),是不同类型的加密算法。

转载请注明:在路上 » 【整理】加密算法blowfish和sha1的区别

与本文相关的文章

  • 暂无相关文章!
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
78 queries in 0.153 seconds, using 21.89MB memory