SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Always learning viveknarula's Avatar
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Password protection/encryption with Javascript

    Hi All,

    I am using ajax to send data from an login form to the server file that is an PHP file where i am having some validations. However i am afraid that while transferring Password from the Ajax request to the server file. Someone can steal my password.

    How can i solve this issue?

    Secondly, if i use user-defined javascript functions to encrypt the password then that user-defined function will also be visible to the public. and they can reverse back that function to extract the original password.

    Please Advice.

    Thanks !!

  2. #2
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    He he ... use HTTPS

    otherwise you will have to use a Asymetric Crypto Algorithm like RSA .

    http://freebeer.smithii.com/www/demo/lib.RSA.php
    Vikas Patial ( Software Consultant )
    Blog | Portfolio | Passion


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •