Is HexEncoder be the same as Base64Encoder? Stephen
On Tue, 2003-11-18 at 22:25, Walton, Jeffrey wrote:
> In test.cpp, around line 600. Here's Wei's use of the function:
>
> string EncryptString(const char *instr, const char *passPhrase)
> {
> string outstr;
>
> DefaultEncryptorWithMAC encryptor(passPhrase, new HexEncoder(new
> StringSink(outstr)));
> encryptor.Put((byte *)instr, strlen(instr));
> encryptor.MessageEnd();
>
> return outstr;
> }
>
> string DecryptString(const char *instr, const char *passPhrase)
> {
> string outstr;
>
> HexDecoder decryptor(new DefaultDecryptorWithMAC(passPhrase, new
> StringSink(outstr)));
> decryptor.Put((byte *)instr, strlen(instr));
> decryptor.MessageEnd();
>
> return outstr;
> }
>
> Jeffrey Walton
> Maryland DDS
> 410-308-4441
> [EMAIL PROTECTED]
>
>
> > -----Original Message-----
> > From: Stephen torri [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 18, 2003 11:11 PM
> > To: Walton, Jeffrey
> > Subject: Re:
> >
> >
> > Thanks. I appreciate the example.
> >
> > Stephen
> >
> > --
> > Stephen Torri
> > GPG Key: http://www.cs.wustl.edu/~storri/storri.asc
> >
--
Stephen Torri
GPG Key: http://www.cs.wustl.edu/~storri/storri.asc
signature.asc
Description: This is a digitally signed message part
