javascript - How to securely pass data from php forms to html -


i have login system html form , need send username , password php backend can there securely encrypt , store in database. wondering date , secure method of doing is. bearing in mind barebones string form of password important vigilant of secure way of passing back. know $_get , $_post extremely unsecure. encrypt data in javascript before sent server hence javascript hashing algorithm being laid bare end user or https encryption sufficient? if have https encryption pass using $_get , $_post? thanks

  • google , read relevant information such this.
  • do not hash on client. pass clear-text password server.
  • use post keep password out of url (urls have nasty way of getting logged , otherwise exposed people).
  • i recommend use https everywhere minimum use https login form , pages follow login.
  • store password in database using php's password_hash function , verify using password_verify.

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -