am [writing reading] from a plain text file usernames and passwords, but its an bad way of securing data, is there any other way to do this, most probably by using IV’s, encryption decryption algorithms.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can encode your passwords with HASHES like SHA1.
Using it is simple!
So whenever you need to authenticate a user, you can take his input password, compute a hash of it using the above function and make sure it’s the same with a simple IF clause:
SHA1 hashes aren’t decryptable without sheer brute forcing every possibility so it’s a pretty safe solution.