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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:04:31+00:00 2026-06-02T16:04:31+00:00

Based on a combination of previous answers, I was able to resolve an issue

  • 0

Based on a combination of previous answers, I was able to resolve an issue with outputting the appropriate characters for a hash. I am still having a problem with length, as the hash i am getting is much longer than the expected one from the documentation I am following. The api documentation says to use SHA512 and has “FA35A0194E3BE7024CEFB1839CBFC922” as the example parameter, but when I run my hash tester with a simple password like “test” to get a value to pass into it I get “EE26B0DD4AF7E749AA1A8EE3C10AE9923F618980772E473F8819A5D4940E0DB27AC185F8A0E1D5F84F88BC887FD67B143732C304CC5FA9AD8E6F57F50028A8FF” – which is obviously much longer than what I need.

FYI, here is what I’m using to do this:

byte[] hashedPassword = HashAlgorithm.Create("SHA512").ComputeHash(new UTF8Encoding(false).GetBytes("test"));
Console.WriteLine(BitConverter.ToString(hashedPassword).Replace("-", ""));

Hopefully someone out there has more experience than I do (more than none) with this hash stuff. Is it normal to shrink a value like this somehow or take a certain part of it? I’m not really sure what to do from here.

  • 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-02T16:04:31+00:00Added an answer on June 2, 2026 at 4:04 pm

    You asked for a 512 bit hash. 512 bits is 64 bytes. 64 bytes written in hex is 128 characters. I’m therefore not understanding why you think something is wrong here.

    which is obviously much longer than what I need.

    Why is that obvious?

    If it is much longer than what you need then why did you ask for a 512 bit hash in the first place?

    Is it normal to shrink a value like this somehow or take a certain part of it?

    Absolutely not.

    I’m not really sure what to do from here.

    Hire a professional who specializes in writing security software, who can write the software for you and train you in its correct maintenance. You do not know enough about writing secure software to do so successfully. Writing security systems is one of the hardest things you can do in any language; it takes years of training and experience to write a system that is actually secure against attack.

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

Sidebar

Related Questions

Based on how things are done for my company, we issue updates very very
Based on this article I was able to get the FullName to work rather
This question is based on a previous question: How does C# compilation get around
I'm using spring based validation in combination with hibernate validator enabled by the following
We have an in house developed web-based admin console that uses a combination of
I just want to sort this based on Month and year combination (that is,
I've a table like this And I want to rank it based on combination
Scope: PHP-mysql based site, using memcached. Caching issue is mostly about prices. Because of
I'm trying to make a wrapper for some C-based sparse-matrix-handling code (see previous question
I'm trying to resolve all the combinations of elements based on a given string.

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.