Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
crypto::MinecraftHash Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MinecraftHash()

crypto::MinecraftHash::MinecraftHash ( )

Construct a new Minecraft Hash object.

Creates a new Minecraft Hash object, initailizing everything.

◆ ~MinecraftHash()

crypto::MinecraftHash::~MinecraftHash ( )

Destroy the Minecraft Hash object.

Everything is said above.

Member Function Documentation

◆ finalize()

std::string crypto::MinecraftHash::finalize ( )

Finalizes the hash.

Finalizes the hash, returning it in a Minecraft-friendly format.

Returns
std::string the minecraft hash

◆ update()

void crypto::MinecraftHash::update ( const std::string & s)

Updates the hash.

Updates the SHA-1 hash with s

Parameters
sthe data to update the buffer with

The documentation for this class was generated from the following files: