Skip to content

☝️Implementation and console application of Sha512 hash function.

License

Notifications You must be signed in to change notification settings

red-sayed/Sha512

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

☝️Sha512

What is it?

This is an implementation and console application of Sha512 hash function, one of the most famous hash function. It is a part of RedLibrary.

How to use?

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);
}

What about speed?

Speed test can will be soon, sorry.

Tech notes:

  • It understands all ASCII characters.
  • It's rather fast.

Example:

All material in this repository is in the public domain.

About

☝️Implementation and console application of Sha512 hash function.

Topics

Resources

License

Stars

Watchers

Forks