MCPcopy Create free account
hub / github.com/c3d/tao3D / EncryptString

Function EncryptString

libcryptopp/cryptopp/test.cpp:508–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508string EncryptString(const char *instr, const char *passPhrase)
509{
510 string outstr;
511
512 DefaultEncryptorWithMAC encryptor(passPhrase, new HexEncoder(new StringSink(outstr)));
513 encryptor.Put((byte *)instr, strlen(instr));
514 encryptor.MessageEnd();
515
516 return outstr;
517}
518
519string DecryptString(const char *instr, const char *passPhrase)
520{

Callers 1

CRYPTOPP_API mainFunction · 0.85

Calls 2

MessageEndMethod · 0.80
PutMethod · 0.45

Tested by

no test coverage detected