如何在Java中为密码管理器加密密码

huangapple go评论64阅读模式
英文:

how to encrypt passwords for password manager in java

问题

我想制作一个Java密码管理器,因此我想加密密码并将其插入数据库,然后解密检索出来,你能否请给我解释一下如何做呢?以及我应该使用什么类型的加密算法?

英文:

I want to make a java password manager so I want to encrypt the passwords and insert it into the database then retrieve it decrypted
can you please explain to me how to do it?
And what type of encryption algorithms should I use?

答案1

得分: 1

一些最受欢迎的加密方法包括:

  • 数据加密标准(DES)加密(警告:不安全)
  • 三重DES加密
  • RSA加密
  • 高级加密标准(AES)加密

通常不建议自行创建加密方法,因为很有可能其安全性不如经过严格测试保证完整性的方法(如上所述)。

您可以在下面找到如何使用它们的一些示例:

英文:

Some of the most popular encryption methods include:

  • Data Encryption Standard (DES) Encryption (WARNING: Unsecure)
  • TripleDES Encryption
  • RSA Encryption
  • Advanced Encryption Standard (AES) Encryption

It's not generally recommended to make your own encryption method, because there is a high possibility it is not as secure as ones that have been rigorously tested for integrity. (Like the ones as mentioned)

You can find some examples below on how to use them:

huangapple
  • 本文由 发表于 2020年9月18日 09:54:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/63948284.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定