Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6343533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:27:25+00:00 2026-05-24T20:27:25+00:00

I have to do the decryption before comparing the password. I have not used

  • 0

I have to do the decryption before comparing the password. I have not used this before can anyone tell me how the decryption code should be like. thanks

public string Encript(string password)
        {
            System.Security.Cryptography.MD5CryptoServiceProvider objCript =
                new System.Security.Cryptography.MD5CryptoServiceProvider();
            byte[] bs = System.Text.Encoding.UTF8.GetBytes(password);
            bs = objCript.ComputeHash(bs);
            System.Text.StringBuilder s = new System.Text.StringBuilder();

            foreach (byte b in bs)
            {
                s.Append(b.ToString("x2").ToLower());
            }
            password = s.ToString();
            return password;
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:27:26+00:00Added an answer on May 24, 2026 at 8:27 pm

    Like the other users have said before, MD5 is a one-way hash algorithm. You cannot decrypt the hash in order to retrieve the original password. The best you can do is to “guess” the password, hash it with MD5 and compare it to the hash. This is a brute force approach and will generally take a lot of time. And if a salt was used when generating the hash, then it will take even more time.

    If you really want to find out the original message you can resort to using rainbow tables. This is basically a database which contains a lot of precomputed hashes, which should bring down the total time of your brute force attack. But if a salt was used, you’re pretty much out of luck here.

    A good article on bad passwords, hashes, salts, rainbow tables…etc. can be found here:

    Bad passwords are not fun and good entropy is always important: demystifying security fallacies

    You aren’t actually trying to break into someone’s site, now are you?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've dealt with errors like this in Eclipse before, but I have no idea
Hi Have use this code before. Find it useful on Web. But Dont know
I have something like this: [Description(Sets the color.), Category(Values), DefaultValue(Color.White), Browsable(true)] public Color MyColor
I have an enum with Description attributes like this: public enum MyEnum { Name1
I have two tables that look like this: Products: id category name description active
I need some advice. (For those who have already read this before I have
I have something like this: <ul class=links> <li> <a title=Link 1 description href=example.html>Link 1</a>
I have two WCF Web API Contracts. Before this, I was happy that I
I think I have done this before, but it could also be a function
I have a legacy C++ module that offers encryption/decryption using the openssl library (DES

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.