Thu Sep 15, 2016 8:48 am
You should never use a reversible method to store passwords. Store a hash of the password only.
Let the user enter the password , hash the input , and compare to the stored hash.
Use PBKDF2 , bcrypt or Argon2 as hash functions. Password hashing functions can (and should !) be "slow".
Don't use SHA256 or similiar - they are too "fast". Definetely don't use MD5.
If you "need" to store passwords in a reversible form , i would think long and hard if the design of
your system isn't fundamentally broken somehow.
ghans
Last edited by
ghans on Thu Sep 15, 2016 8:58 am, edited 1 time in total.
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org