Search code examples
javadatabaseencryptionpasswordsproject

how to encrypt passwords for password manager in 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?


Solution

  • 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: