Click here to Skip to main content
15,891,896 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi i am saving the password in encryption format.i forgot the password. i want to recover it

i am giving the encrypted password can any one tell me the original password "688252CDB150B33960EC59700BB07B2A"
Posted
Comments
Maciej Los 17-May-12 10:54am    
To decrypt your password, we need to know an algorithm. It looks like MD5.
yerrojumeher 17-May-12 10:57am    
FormsAuthentication.HashPasswordForStoringInConfigFile(Trim(passWord), "md5")
Dave Kreskowiak 17-May-12 11:39am    
MD5 is a one-way HASH, no an encryption algorithm. Learn what the difference between the two is.

HASHes cannot be reversed to get the original value back from them. So no, there's no way to tell you want the original password was.
TomasRiker2 18-May-12 5:44am    
It is possible under certain restrictions.
For example, if you know that the password is not longer than N characters and contains only certain characters, then the number of possibilities is not infinite any more and might even be one only!
Dave Kreskowiak 18-May-12 8:08am    
I know that, but are you going to describe all of ins and outs of doing this to this guy??

Oh, and then you have to brute force check a password "guess" hash against the actual hash. This could take a couple of minutes or a few weeks.

The answer is no, you can't. See here for a reasonable explanation: how to decrypt a string[^].

Can't you just create another user id/password for your app?
 
Share this answer
 
Comments
Maciej Los 17-May-12 11:08am    
Great answer! My BIG 5!
The password "PRASAD" gives the MD5 value that you posted.
So maybe(!) this was your original password?
Of course, there are infinitely many strings that convert to the exact same MD5, but probably not that many short ones which could actually have been used as a password.

Source:
http://md5.gromweb.com/?md5=688252CDB150B33960EC59700BB07B2A[^]
 
Share this answer
 
v2
C#
private static void EncryptData(String inName, String outName, byte[] desKey, byte[] 

desIV)
    {
        //Create the file streams to handle the input and output files.
        FileStream fin = new FileStream(inName, FileMode.Open, FileAccess.Read);
        FileStream fout = new FileStream(outName, FileMode.OpenOrCreate, FileAccess.Write);
        fout.SetLength(0);

        //Create variables to help with read and write.
        byte[] bin = new byte[100]; //This is intermediate storage for the encryption.
        long rdlen = 0;              //This is the total number of bytes written.
        long totlen = fin.Length;    //This is the total length of the input file.
        int len;                     //This is the number of bytes to be written at a time.

        DES des = new DESCryptoServiceProvider();
        CryptoStream encStream = new CryptoStream(fout, des.CreateEncryptor(desKey, desIV), 

CryptoStreamMode.Write);

        //Read from the input file, then encrypt and write to the output file.
        while (rdlen < totlen)
        {
            len = fin.Read(bin, 0, 100);
            encStream.Write(bin, 0, len);
            rdlen = rdlen + len;
        }

        encStream.Close();
        fout.Close();
        fin.Close();
    }

    //解密文件
    private static void DecryptData(String inName, String outName, byte[] desKey, byte[] 

desIV)
    {
        //Create the file streams to handle the input and output files.
        FileStream fin = new FileStream(inName, FileMode.Open, FileAccess.Read);
        FileStream fout = new FileStream(outName, FileMode.OpenOrCreate, FileAccess.Write);
        fout.SetLength(0);

        //Create variables to help with read and write.
        byte[] bin = new byte[100]; //This is intermediate storage for the encryption.
        long rdlen = 0;              //This is the total number of bytes written.
        long totlen = fin.Length;    //This is the total length of the input file.
        int len;                     //This is the number of bytes to be written at a time.

        DES des = new DESCryptoServiceProvider();
        CryptoStream encStream = new CryptoStream(fout, des.CreateDecryptor(desKey, desIV), 

CryptoStreamMode.Write);

        //Read from the input file, then encrypt and write to the output file.
        while (rdlen < totlen)
        {
            len = fin.Read(bin, 0, 100);
            encStream.Write(bin, 0, len);
            rdlen = rdlen + len;
        }

        encStream.Close();
        fout.Close();
        fin.Close();
    }
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900