英文:
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:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论