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?
Asked
Active
Viewed 1,075 times
-2
-
can you explain what is the difference please – Yahya Sep 18 '20 at 01:59
-
thank you for the answer but if i use hashing how to retrieve it as readable text in my application – Yahya Sep 18 '20 at 02:09
-
yes but the problem is the user is not going write down the password because it's a password manager where he use the application to see his accounts passwords – Yahya Sep 18 '20 at 02:13
-
why did u delete it – Yahya Sep 18 '20 at 02:15
-
can you please give me the way of doing aes for java – Yahya Sep 18 '20 at 03:28
-
1Welcome to Stackoverflow. "can you please give me the way of doing aes for java" - SO is not a code writing service. Start your research for code with "AES string encryption" – Michael Fehr Sep 18 '20 at 07:02
-
@Yahya I've added the AES example for you, although Micheal Fehr does have a point. – Spectric Sep 19 '20 at 00:01
-
1wdym it's not a writing service in the about page they said "Helping developers and technologists write the script of the future" – Yahya Sep 19 '20 at 12:02
1 Answers
1
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:

Spectric
- 30,714
- 6
- 20
- 43
-
Thats right! I would combine a standard-encryption method with a seed (manual password to enter). Without the seed, It't impossible to recover the stored passwords. – Mirko Sep 18 '20 at 05:09
-
2Why do you recommend "DES" as your first choice as it is named as "**UNSECURE**" and should not any longer used, especially for a password manager? – Michael Fehr Sep 18 '20 at 07:00
-
I think the modern encryption type things use RSA encryption on the key for AES, so it would probably be useful to include a resource for RSA as well – Nosrep Sep 19 '20 at 01:09