Hello ,
string EncryptS(string text, string pass)
{
Base64Encoder b64;
string returnme;
byte *final = new byte[2000];
byte *out = new byte[1000];
ECB_Mode<Blowfish>::Encryption enc((byte *)pass.c_str(), strlen(pass.c_str()));
//enc.ProcessData(out, (byte *)text.c_str(), sizeof((byte *)text.c_str()));
enc.ProcessString(out,(byte *)text.c_str());
b64.Put2(out,sizeof(out),sizeof(out),true);
b64.MessageEnd();
b64.Get(final,2000);
final[sizeof(final)-1] = 0;
returnme = (const char *)final;
delete out;
delete final;
return returnme;
}
anyone have any idea why this code fails? or know how to fix it? i
can't find any good examples so i am stuck and need a little help.
Thanks.
--
Best regards,
theunforgiven mailto:[EMAIL PROTECTED]