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

Function DecryptString

libcryptopp/cryptopp/test.cpp:519–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519string DecryptString(const char *instr, const char *passPhrase)
520{
521 string outstr;
522
523 HexDecoder decryptor(new DefaultDecryptorWithMAC(passPhrase, new StringSink(outstr)));
524 decryptor.Put((byte *)instr, strlen(instr));
525 decryptor.MessageEnd();
526
527 return outstr;
528}
529
530void EncryptFile(const char *in, const char *out, const char *passPhrase)
531{

Callers 1

CRYPTOPP_API mainFunction · 0.85

Calls 2

MessageEndMethod · 0.80
PutMethod · 0.45

Tested by

no test coverage detected