Results 1 to 6 of 6

Thread: encryption and decryption!!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Resolved encryption and decryption!!

    i have use md5() to encrypt data, but i realize that it is a one way encryption........what method decrypt back the hash code back to original data??
    Last edited by kenny_oh; Oct 14th, 2005 at 04:46 AM.

  2. #2
    Frenzied Member
    Join Date
    Aug 2005
    Posts
    1,042

    Re: encryption and decryption!!

    kenny oh:

    I think "one way" means exactly what it implies. That is, you can encrypt the file, but you CAN'T decrypt it. That would mean that there is not any way to dcrypt it.

    I don't know about md5( ) specifically, but unless you kept a backup copy of the data you may be out of luck.

  3. #3
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: encryption and decryption!!

    to be able to encrypt sometihng then decrypt it later is to use the encrypt() function to encrypt and the decrypt() finction to decrypt ... if u want the "one way" only just use crypt()

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Re: encryption and decryption!!

    ok....dont bother which method i use...assume that i use md5(), when i want to login, i encrypt the password to match with the encrypted password in databse, it should be no problem, but after the login password encrypted, the outcome is longer than the password in the database, do u know y?

    i hv tried that same word after encrypt using md5(), the output is always exactly the same.....

  5. #5
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: encryption and decryption!!

    ive never used md5() so i cant help u there ... im sure someone else can

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: encryption and decryption!!

    MD5 is always 32 characters wide. You can also convert it to 4, 32 bit integers if you don't want to store it as a string.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width