| 506 | } |
| 507 | |
| 508 | string 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 | |
| 519 | string DecryptString(const char *instr, const char *passPhrase) |
| 520 | { |
no test coverage detected