Results 1 to 6 of 6

Thread: password protection.

  1. #1
    Join Date
    Dec 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default password protection.

    Message Encrypter
    http://www.dynamicdrive.com/dynamici...gencrypter.htm

    I am writing some code for a school in php that requires a password. My problem is that I need the person to log on with their password and then need to pass this password to other programs without them having to log in again on every screen. If I pass it as a parameter, then it appears in the address line. Sometimes I can pass it hidden in a form but it is still showing if someone views the source. What I would like to do is encrypt the password before sending it and unscramble it the other end. The message encrypter script seems to do what I want except that I do not know java and can't work out how to extract what I need from it. I would like a script that I can use by the first program: This script uses a password and code for encrypting it which I give it in my php code (not by asking the user). I then need a script for the receiving program that also knows the code to unscramble the encrypted password passed to it.

    I don't know if this makes sense or if it is possible to interact between java and php this way. Perhaps there is another way of protecting passwords that is better. Any help you can give would be greatly appreciated.

    Sue

  2. #2
    Join Date
    Jan 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I haven't looked at that link, but recommend you use PHP, just md5() the password.

    <?php

    $password = "mypassword";
    $password = md5($password);

    ?>

  3. #3
    Join Date
    Dec 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks. I have never heard of md5. I presume that gives back an encrypted password? How do I unscramble it in the second program?

    Sue

  4. #4
    Join Date
    Oct 2004
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    there is another gay. there are HTML encryptors out there, some even as safe as php.
    you won't get anything out of the code. I use it in mypage, since I don't have php in my freeserver...
    Still PHP is a much friendlier way

  5. #5
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    there is another gay.
    Uhm... You mean way?

    :P

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by sue
    I have never heard of md5. I presume that gives back an encrypted password?
    MD5 is a transformation function that converts an input sequence into a 128-bit (16 byte) representation (a message digest).

    How do I unscramble it in the second program?
    The transformation is one-way; it cannot be reversed.

    Mike

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
  •