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 744215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:57:08+00:00 2026-05-14T08:57:08+00:00

I’m looking for help to convert an ASCII MD5 hashed password into a Unicode

  • 0

I’m looking for help to convert an ASCII MD5 hashed password into a Unicode MD5 hashed password?

For example, I’ll use the string “password” .

When it’s converted to an ascii byte array, I get a base64 encoded hash of X03MO1qnZdYdgyfeuILPmQ==
When it’s converted into a unicode byte array, I get a base64 encoded hash of sIHb6F4ew//D1OfQInQAzQ==

All my passwords are stored in an md5 hash that was applied to an ascii byte array, but I’m trying to migrate my application’s user data to a system that stores password in an md5 hash that is applied a unicode byte array.

In case it’s not clear, with the following C#code:

var passwordBytes = Encoding.ASCII.GetBytes("password");
var hashAlgorithm = HashAlgorithm.Create("MD5");
var hashBytes = hashAlgorithm.ComputeHash(passwordBytes);

My current system uses this, but the system I’m moving to has a different first line. It uses Encoding.Unicode.GetBytes.

Does anybody know how I can convert my passwords? From

X03MO1qnZdYdgyfeuILPmQ==

into

sIHb6F4ew//D1OfQInQAzQ==

I’m guessing the answer is that I can’t.. the encoding is being done before the hashing, but I thought I’d inquire the bright minds of stackoverflow and see if anybody has a way.

  • 1 1 Answer
  • 1 View
  • 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-14T08:57:09+00:00Added an answer on May 14, 2026 at 8:57 am

    Can you use UTF-8? If so, it solves your problem as Unicode encoded in UTF-8 and ASCII would have the same MD5 hash. (Assuming that when you refer to ASCII you are referring to the lower seven bits).

    Alternatively, you could create a unicode hash, check if that works, and if it doesn’t try an ASCII hash.

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

Sidebar

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.