Registry / crypto / cryptopp

cryptopp

JSON →
library8.9.0vcpkgunverified

Crypto++ is a free C++ class library of cryptographic schemes.

vcpkg install cryptopp
INSTALL
IMPORT
SIG · CRYPTOPP
C
cryptopp
cryptocppv8.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cryptopp/cryptlib.h
#include <cryptopp/cryptlib.h>

Compute SHA-256 hash of a string

#include <cryptopp/sha.h> #include <cryptopp/hex.h> #include <iostream> #include <string> int main() { CryptoPP::SHA256 hash; std::string msg = "hello"; std::string digest; CryptoPP::StringSource(msg, true, new CryptoPP::HashFilter(hash, new CryptoPP::HexEncoder(new CryptoPP::StringSink(digest)))); std::cout << digest << std::endl; return 0; }
Debug
Known issues
gotchaCrypto++ uses its own memory management; mixing with standard allocators can cause issues.
fix
Use CryptoPP::Allocator or CryptoPP::SecBlock for secure memory.
affects: *
Upgrade
Version history
8.9.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Resources

No resource links recorded.

cryptopp — pip install cryptopp · libregistry