0

I want to create a database for user-account-Management.

I want the user to save his username and optionally his password in a database. Only the user itself should see the data in realtext on the website.

If User 1 type in passwort 123456 the encryptet string for user 1 is o92f2323 for example. If User 2 type in passwort 123456 too the encryptet string for user 2 is 0r90fg2f3.

So every encryption is user-specified. I dont know what i should look for. Can you please tell me some tags that i should look for to work with.

Thank you in advance!

8
  • passwords should not be decryptable. You should be using password_hash(). php.net/manual/en/function.password-hash.php Commented May 27, 2017 at 12:34
  • Yes i know. But the password isnt for the login of the website. It is data for an external Programm. Users should input their data so they can watch them. For the register an login for my website, which include the Account-Management I use password_hash of course. :) Commented May 27, 2017 at 12:39
  • I want that even I couldn't whatch the User-Data in de DB in cleartext. Only the frontent which encode the cryptet data in the Database should display the user-saved data. :) You know what i mean? Sorry my english isn't very well... Commented May 27, 2017 at 12:42
  • Ok, Then you can use password_hash() . and password_verify() to check the password. Commented May 27, 2017 at 12:42
  • See this Q&A then stackoverflow.com/questions/1289061/… and the linked duplicate stackoverflow.com/questions/5089841/… Commented May 27, 2017 at 12:43

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.