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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:51:27+00:00 2026-06-14T08:51:27+00:00

I have been struggling for 4 days trying to implement a hash algorithm in

  • 0

I have been struggling for 4 days trying to implement a hash algorithm in c# which works like the FIPS 198 standards document. I have reached a point where I have a value of

06070405020300010e0f0c0d0a0b080976777475363636363636363636363636363636363636363636363636363636363636363636363636363636363636363653616d706c65202332

I took this value and inserted it into the binary hash tool on http://www.fileformat.info/tool/hash.htm and the SHA-1 value is what I am expecting, but I can’t replicate this in c#.

Expected value:

SHA-1: 74766e5f6913e8cb6f7f108a11298b15010c353a

When I use the SHA1 class in c# I get the value a969fdc725114c8418ca5c23946bd09977054ff6, which is the same as me entering my value above in the String Hash tool.

Could someone please point me in the right direction to generate what I require.

  • 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-06-14T08:51:28+00:00Added an answer on June 14, 2026 at 8:51 am

    You will need to convert your hex-string data into a byte array. There are plenty of examples online of how to do this. One example posted to SO already is here (use the StringToByteArray function). Once you have a byte array, pass this through the SHA-1 hash and you should get the output you require.

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

Sidebar

Related Questions

I have been struggling for days trying to find the proper way to implement
I have been struggling for a few days trying to find out how come
So I have been struggling for days now, trying to simply create a new
I have been struggling for days trying to get a simple ActiveX DLL to
I have been struggling with this for days. This works, but does not pass
So I've been struggling with this for a couple days now. I have a
I have been struggling with setting up an iOS (Objective-C) app which utilizes the
I have been struggling all afternoon trying to get a simple mailto: tag to
I have been struggling to think of some decent uses for things like vectors
I have been struggling for days to determine how to take an XML file

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.