This is an implementation and console application of Sha512 hash function, one of the most famous hash function. It is a part of RedLibrary.
Function prototype:
// Open functions.
namespace Red {
/**
* @brief Sha512
*
* @param input Pointer to data to be hashed.
*
* @return Pointer to a new string with sha512 hash.
*/
std::string * Sha512(std::string *input);
/**
* @brief Sha512file
*
* @param file Pointer to file to be hashed.
*
* @return Pointer to a new string with sha512 hash.
*/
std::string * Sha512file(std::FILE* file);
/**
* @brief Sha512file
*
* @param filename Pointer to str with filename.
*
* @return Pointer to a new string with sha512 hash.
*/
std::string * Sha512file(const char* filename);
}
Speed test can will be soon, sorry.
- It understands all ASCII characters.
- It's rather fast.
All material in this repository is in the public domain.