Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
The Minecraft Hashing class. More...
#include <crypto.h>
Public Member Functions | |
MinecraftHash () | |
Construct a new Minecraft Hash object. | |
~MinecraftHash () | |
Destroy the Minecraft Hash object. | |
void | update (const std::string &s) |
Updates the hash. | |
std::string | finalize () |
Finalizes the hash. | |
The Minecraft Hashing class.
The class that wraps around OpenSSL to generate minecrafty-hashes because they are not bothered to do something standard. In the end it is just SHA-1 with fancy things on top of it.
crypto::MinecraftHash::MinecraftHash | ( | ) |
Construct a new Minecraft Hash object.
Creates a new Minecraft Hash object, initailizing everything.
crypto::MinecraftHash::~MinecraftHash | ( | ) |
Destroy the Minecraft Hash object.
Everything is said above.
std::string crypto::MinecraftHash::finalize | ( | ) |
Finalizes the hash.
Finalizes the hash, returning it in a Minecraft-friendly format.
Updates the hash.
Updates the SHA-1 hash with s
s | the data to update the buffer with |