C++ Programming on Linux - Crypto++ Message Digest

Veröffentlicht am: 29 August 2022
auf dem Kanal: Hui Yuan
801
5

In this short video it demonstrated how to use Crypto++ Library to perform Message Digest. this video uses 2 typical message digest algorithms, MD5 and SHA256, as example.
In Crypto++ Library, MD5 is no longer considered secure, and it has been declared in the Weak namespace. Weak is part of the Crypto++ namespace. it contains weak and wounded algorithms. Schemes and algorithms are moved into Weak when their security level is reduced to an unacceptable level by contemporary standards.
To use an algorithm in the Weak namespace, you must #define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1 before including a header for a weak or wounded algorithm. SHA256 algorithm is not part of Weak namespace, program is able to include the header file directly.

All Crypto++ hashes derive from HashTransformation. The base class provides functions like Update, Final and Verify. You can swap-in any hash for any other hash in your program.

The example code have been uploaded onto GitHub:
https://github.com/yuanhui360/CPP-Pro...


Auf dieser Seite können Sie das Online-Video C++ Programming on Linux - Crypto++ Message Digest mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Hui Yuan 29 August 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 801 Mal angesehen und es wurde von 5 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!