Results 1 to 5 of 5

Thread: encode and decode

  1. #1
    Join Date
    Feb 2003
    Location
    Tallahassee, Florida USA
    Posts
    43

    encode and decode

    Hi everybody,

    I am trying to know how to use the
    encode and decode functions
    and are they the best way to go for
    to encrypt passwords.

    Thank you much

  2. #2
    Join Date
    Oct 2004
    Posts
    3
    hi,

    to encrypt the password you can use encode and decode.

    while inserting the record you encrypt the password along with some string like
    insert into table values ENCODE($password,'898afod98')
    while comparing DECODE with same string
    like DECODE (Password,'898afod98')

    good luck

  3. #3
    Join Date
    Feb 2003
    Location
    Tallahassee, Florida USA
    Posts
    43
    Thank you so much for the reply

    Can you tell me what are the string (898afod98) that
    you included is used for and how should
    I deal with it or is there any comments about it.

    Thank you in advance.

  4. #4
    Join Date
    Oct 2004
    Posts
    3
    hi Najjar,

    Actually the string i given is a random string, it can have any value.

    Encode uses a mechanism and converts the password using a string given by you.

    The string entered by u must be critical and it should not be easy to keep in mind if someone happens to see ur source code.
    that's all.

    for that you can use md5 of any string and can use it as an key for encoding

  5. #5
    Join Date
    Feb 2003
    Location
    Tallahassee, Florida USA
    Posts
    43
    Thank you much.
    That's all I needed to know.

Posting Permissions

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