The addition and decryption of Poco library--foundation components crypt

Source: Internet
Author: User
Tags crypt

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.