(language C++.)

This is an implementation of the popular SHA-512 hash function. Written in a convenient class form for speedy deployment. The digest is stored in an array of 8 unsigned "long long" integers within the class. For convenient retrieval of the digest, use member function `GetDigest()`

The following four member functions are set public for developers who want to deploy this class.

SHAtwoLinkDBs()
HashText()
HashData()
GetDigest()
SetTotalRounds()

SHAtwoLinkDBs()
You must provide your class name to this macro. This will copy initialization vectors into your specific class. Allows declaration of multiple instances.

HashText()
This expects a c-style string as an argument. Your string must fit in memory, and be less than 4.2 GB.

HashData()
Expects an array of unsigned bytes and a specified size. Your data must fit in memory, and be less than 4.2 GB.

GetDigest()
The digest will be copied into your array.

Project Activity

See All Activity >

Follow SHA-512 class

SHA-512 class Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SHA-512 class!

Additional Project Details

Registered

2014-05-13