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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:46:00+00:00 2026-05-27T13:46:00+00:00

How can I change the default THash.Hash algorythm from trhe default SHA-1 to MD5?

  • 0

How can I change the default THash.Hash algorythm from trhe default SHA-1 to MD5?

The following does not works:

var
  StringHash: THash;
begin
  StringHash.Create(nil);
  StringHash.Hash := 'MD5';
end;

Edit:

Yes you are all right: I apologize for not having mentioned the fact that THash is a class of the new TurboPower LockBox 3.

My apologies again for this omission!

Anyway Sean has already given the answer I was looking for.

Thank you all

  • 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-27T13:46:01+00:00Added an answer on May 27, 2026 at 1:46 pm

    Assuming that you are referring to the THash component of TurboPower Lockbox, you can select the hashing algorithm at run-time like so:

    function FindHashOfBananaBananaBanana: TBytes;
    var
      StringHash: THash;
      Lib: TCrypographicLibrary;
    begin
    StringHash := THash.Create( nil);
    Lib := TCrypographicLibrary( nil);
    try
      StringHash.CryptoLibrary := Lib;
      StringHash.HashId := SHA512_ProgId; // Find constants for other algorithms
                                          //  in unit uTPLb_Constants.
      StringHash.HashAnsiString('Banana banana banana');
      SetLength( result, StringHash.HashOutputValue.Size);
      StringHash.HashOutputValue.Read( result[0], StringHash.HashOutputValue.Size);
      StringHash.Burn
    finally
      StringHash.Free;
      Lib.Free
      end
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is default hash algorithm that ASP.NET membership uses? And how can I change
For some reason, I can not seem to change the default position of an
Is there a way I can change the default system mouse pointer from within
I'm not sure if this is actually possible, but can I change default type
Can we change from default blue color of Phone number( UITextView...with detect Phone Number
How can I change the (default) type for ActiveRecord's IDs? int is not long
How can I change default Generate Method Stub behavior in Visaul Studio to generate
Can anyone tell me how can I change the default style of DropDownlist scrollbar
In ASP MVC (RC 1), how can I change the default template for ValidationSummary?
How can I change for example default width and height for buttons, etc?

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.