-2

So I was looking at the PHP Crypt Function

and I was wondering if you could make this into a user input form type deal.

Like This so when they submit the whatever they entered it will output the crpyt() function after they submit it and crpyt whatever they entered (eg. Like a password or something.)

Sorry if this was answered before, I couldn't seem to find it! Any help on this would be great! Thanks.

8
  • Mind has been twisted into too many shapes here. - Huh?! Commented Jun 10, 2016 at 15:34
  • Just do a form and when its post, write in document the hashed string Commented Jun 10, 2016 at 15:36
  • @Carlos2W What do you mean? Can you provide me with an example? Commented Jun 10, 2016 at 15:36
  • 1
    What you are asking for is VERY basic. I would recommend that you go through a beginning tutorial into the PHP language. W3 has some great ones w3schools.com/php/default.asp Commented Jun 10, 2016 at 15:37
  • 1
    what makes you think it couldn't be? PHP's raison d'etre is to take text input from a user, mangle it in one or more ways, and output stuff. Commented Jun 10, 2016 at 15:37

1 Answer 1

1

If you want to use it in the browser, it will be simplier to use javascript equivalent library. Take a look at PHP function crypt in javascript, the example is given.

Sign up to request clarification or add additional context in comments.

1 Comment

that should be a possible duplicate then

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.