Add decryption Crypt: Internal provides a variety of encryption and decryption methods, information digest extraction, random number generation, etc., the specific algorithm internal implementation does not do research study;
The Digestengine.h:digestengine class serves as the base class for various digest extracts, providing the necessary interfaces; Update: parameter to provide data information that will be extracted, digest: Get Information Digest, Digestlength: Gets the length of the Information digest;
Reset: Resets the data information that will be extracted to regenerate the information digest calculation, Digesttohex and Digestfromhex: Information Digest and hexadecimal data string conversion, Updateimpl: Update data information, extract the information Digest, subclass
Implementation of the specific extraction process;
Md4engine.h/md5engine.h:md4engine/md5engine class is MD4, MD5 Information Digest algorithm, to test the integrity of the password hash function, abstract length 128 bits (16 bytes), generally in 32-bit hexadecimal representation;
The Sha1engine.h:sha1engine class is the SHA1 Information Digest algorithm, the digest length is bit 160 bits (20 bytes), generally in 40 bits hexadecimal representation;
The Hmacengine.h/pbkdf2engine.h:hmacengine and Pbkdf2engine classes inherit from the Digestengine class, in the form of template parameters, passed in md4engine/md5engine/ Sha1engine as the base digest generation engine, and generally
, Pbkdf2engine is encapsulated with Hmacengine as template parameter.
Random.h: Pseudo-random number generator; Based on the implementation of the random numbers generator in FreeBSD, there are 5 generators available.
The addition and decryption of Poco library--foundation components crypt