Skip to content

xzhou13/Sha256

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sha256

C++ implementation of Sha256, hashes to given number of bits. NOTE the code is written for little endian machines.

Type make in the root of the repository, and then run ./sha256 <message>. Usage (Note the code is written for little endian machines):

#include "sha256.h"

Sha256 sha256;
char *message = "abc";
string s = message;
int msgSize = s.size();
numBitsToHash = msgSize*8;
char* hashResult;

hashResult = Sha256(message, msgSize, numBitsToHash).hash();

About

C++ implementation of Sha256, hashes to given number of bits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors