Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MD5 by
MD5 Class Reference
a small class for calculating MD5 hashes of strings or byte arrays it is not meant to be fast or secure More...
#include <md5.h>
Public Member Functions | |
| MD5 (const std::string &text) | |
| take string, hash it and finalize | |
| void | update (const unsigned char *buf, size_type length) |
| add text to hash | |
| void | update (const char *buf, size_type length) |
| add text to hash | |
| MD5 & | finalize () |
| calculate the final hash value | |
| std::string | hexdigest () const |
Detailed Description
a small class for calculating MD5 hashes of strings or byte arrays it is not meant to be fast or secure
usage: 1) feed it blocks of uchars with update() 2) finalize() 3) get hexdigest() string or MD5(std::string).hexdigest()
assumes that char is 8 bit and int is 32 bit
Definition at line 50 of file md5.h.
Constructor & Destructor Documentation
| MD5 | ( | const std::string & | text ) |
Member Function Documentation
| std::string hexdigest | ( | ) | const |
| void update | ( | const unsigned char * | buf, |
| size_type | length | ||
| ) |
add text to hash
- Parameters:
-
buf the text to add to the hash text length
| void update | ( | const char * | buf, |
| size_type | length | ||
| ) |
add text to hash
- Parameters:
-
buf the text to add to the hash text length
Generated on Sun Jul 24 2022 20:04:32 by
1.7.2
