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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:55:37+00:00 2026-05-15T16:55:37+00:00

I have several encoded strings and I need to decode them, my guess is

  • 0

I have several encoded strings and I need to decode them, my guess is they could be base40 encoding. I really need to decode, but it would be nice to do the encoding as well all in C#. BTW, I have tried all standard types of decoding before coming to the conclusion that it appears to be base40.

I couldn’t find anything about base40 encoding/decoding, I found a lot of encoding information about similar things like base32 and of course base64 so I think it should be possible to do a base40.

Here is an example of the encoded string and the correct decoded value. I can provide several other examples if needed. All the string I want to decode are encoded SHA1 hashes.

ENCODED

/KUGOuoESMWYuDb+BTMK1LaGe7k=

DECODED

0xFCA5063AEA0448C598B836FE05330AD4B6867BB9

UPDATE:
Turns out is the binary version of the SHA1 string that is then encoded to base64 which is why I was having trouble decoding it. I can give credit to Ignacio Vazquez-Abrams because he showed some output showing base64 but didn’t explain his answer nor provided a C# example as requested. So I went and dug deeper thing about what his code was doing in what ever language that was and I came up with the answer I posted with a C# example how to do it.

  • 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-15T16:55:37+00:00Added an answer on May 15, 2026 at 4:55 pm

    Ignacio is right; that is base-64:

    byte[] raw = Convert.FromBase64String("/KUGOuoESMWYuDb+BTMK1LaGe7k=");
    foreach(byte b in raw) Console.Write(b.ToString("x2"));
    

    Gives:

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

Sidebar

Related Questions

I have several old 3.5in floppy disks that I would like to backup. My
I need to validate some user input that is encoded in UTF-8. Many have
i have a input tag which is non editable, but some times i need
I have several ASP:TextBox controls on a form (about 20). When the form loads,
I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on
I have several tables whose only unique data is a uniqueidentifier (a Guid) column.
We have several jobs that run concurrently that have to use the same config
We have several wizard style form applications on our website where we capture information
I have several applications that are part of a suite of tools that various
I have several user controls, let's say A , B , C and D

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.