sha1
sha1 copied to clipboard
SHA-1 implementation in C++. Do not use SHA-1 unless you have to! https://en.wikipedia.org/wiki/SHA-1#Birthday-Near-Collision_Attack_%E2%80%93_first_practical_chosen-prefix_attack
``` /home/oliver/c/qa/include/sha1/sha1.hpp:240:20: warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion] | (buffer[4*i+0] & 0xff)
The use of `std::string` kills perf in many ways - every construction and modification may perform a heap allocation. That may also throw an exception, and ultimately terminate the process....
This also adds a workaround to the object hack due to missing .hpp