| 517 | } |
| 518 | |
| 519 | string 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 | |
| 530 | void EncryptFile(const char *in, const char *out, const char *passPhrase) |
| 531 | { |
no test coverage detected