Recognize in 2008, if not earlier, when Nike launched up ahead of the self-assured shoe color projects, the slogan "Bound Your Colours", "Nike PhotoiD" layout, [url=http://fossilsdirect.co.uk/glossarey.cfm]nike huarache free[/url] response has not been as avid as expected. About, 2008 Canon IXUS 80 IS Digital card arcade but one 8 million pixels, Nokia, the facile phone superstore is the one leadership, NikeiD was support to color in the photos as a infrastructure for sneakers custom color, although provocative, but does bother some. Instagram which make this thing hold up to ridicule and simple, Nike PHOTOiD homeopathic upgrade customization services, recently [url=http://markwarren.org.uk/goodbuy.cfm]nike free run[/url] released a new plan. That such iD can you realize pictures as instagram account shoe color, the meanwhile put up Nike Aura Max shoes and Nike Style Max 1, Nike Affectedness Max 90 953 options. Interested in children's shoes, you [url=http://turbo-vac.co.uk/components_13.cfm]nike free womens[/url] can without exception conform with each other's proper website photoid.Nike.com, in reckoning to skim through other people's artistic charge, or you can struggle to upload your own instagram photo, physique your own Nike Mood Max.
ReplyHas honourable released some mod color Democratic Inneva Woven shoes, Nike recently with another direction to bring shoes with different styling to all [url=http://fossilsdirect.co.uk/glossarey.cfm]nike huarache[/url] eyes. This brings steadfast print run Let off Inneva Woven is a Creamy Marker of works in the series, represents shoes Italian made the assurance. Latest Allowed Inneva Woven swart and blue are readily obtainable in two color schemes, to hand-knit Woven vamp in extension to infiltrated Italy's [url=http://markwarren.org.uk/goodbuy.cfm]nike free uk[/url] finest crafts, meanwhile gives athletes terminate to the foot of ease, the most superior thing is the intent of Unstinting 5 configuration, barefoot be aware it resolution give birth to cannot be ignored. Nike Free Inneva Woven SP White Identify Pack on Walk 16 at outlets around the [url=http://northernroofing.co.uk/roofins.cfm]nike free run[/url] kind on the shelves, and on sale in minimal tone, interested friends should pay close attention to Nike announced the news.
ReplyThis is one of the most strange things ever. I have rearranged your code so that it will compile and even WORK using the Borland c++ E6 compiler. It is a very simple application with 3 memo boxes: 1) for the original text to encrypt, 2)for the ascii version of the encrypted text and 3) for the decrypted text, which should be identical to the first box. One button encrypts:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
// vamos a desncryptar lo que tenga mOrig
unsigned char *pIn,*ppOut;
long plSize=0;
bool res;
plSize = mOrig->Text.Length();
res = Crypt((unsigned char*)mOrig->Text.c_str(),&plSize,&ppOut);
if(!res)
{
ShowMessage("Encryption has failed");
return;
}
// pIn[plSize]=0;
res = Bin2ASCII(ppOut,plSize,&pIn);
if(!res)
{
ShowMessage("Binary to ASCII has failed");
return;
}
else mCrypted->Text=AnsiString((char*)pIn);
free(ppOut);
free(pIn);
}
And then, another button to DECRTYPT it:
void __fastcall TForm1::Button2Click(TObject *Sender)
{
// vamos a desencryptar
unsigned char *ppOut;
long l;
l = mCrypted->Text.Length();
ASCII2Bin(mCrypted->Text.c_str(),l,&ppOut);
long l2; double d2;
d2 = l/2;
l2 = (long)d2;
Decrypt(ppOut,&l2);
ppOut[l2]=0;
// the debugger has gone THIS FAR, but then it can't show the next line
mDecrypted->Text=AnsiString((char*)ppOut);
free(ppOut);
}
Please keep this in mind: IT WORKS ONE TIME. One time.
It encrypts and decrypts.
The second time, it can ENCRYPT, but it can't EVER decrypt. As you can see I've added some stupid code in order to see why it is failing. Even with the debugger active, the program goes crazy, giving this information:
---------------------------
Information
---------------------------
Project C:\pb6\ibadmin\comenc.exe faulted with message: 'access violation at 0x40009729: write of address 0x00030de0'. Process Stopped. Use Step or Run to continue.
---------------------------
OK
---------------------------
The above is not happenning within the lines of my code. If I change the lines, the same problem is generated somewhere else.
With the debbuger I have been able to see it going past the DECRYPT() function, but it can not SHOW or copy the results to the memo object. I know this sounds crazy but, any ideas will be welcome.
R I Ohoran
Of course, neither step nor run are useable any more.
Reply
This is one of the most strange things ever. I have rearranged your code so that it will compile and even WORK using the Borland c++ E6 compiler. It is a very simple application with 3 memo boxes: 1) for the original text to encrypt, 2)for the ascii version of the encrypted text and 3) for the decrypted text, which should be identical to the first box. One button encrypts:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
// vamos a desncryptar lo que tenga mOrig
unsigned char *pIn,*ppOut;
long plSize=0;
bool res;
plSize = mOrig->Text.Length();
res = Crypt((unsigned char*)mOrig->Text.c_str(),&plSize,&ppOut);
if(!res)
{
ShowMessage("Encryption has failed");
return;
}
// pIn[plSize]=0;
res = Bin2ASCII(ppOut,plSize,&pIn);
if(!res)
{
ShowMessage("Binary to ASCII has failed");
return;
}
else mCrypted->Text=AnsiString((char*)pIn);
free(ppOut);
free(pIn);
}
And then, another button to DECRTYPT it:
void __fastcall TForm1::Button2Click(TObject *Sender)
{
// vamos a desencryptar
unsigned char *ppOut;
long l;
l = mCrypted->Text.Length();
ASCII2Bin(mCrypted->Text.c_str(),l,&ppOut);
long l2; double d2;
d2 = l/2;
l2 = (long)d2;
Decrypt(ppOut,&l2);
ppOut[l2]=0;
// the debugger has gone THIS FAR, but then it can't show the next line
mDecrypted->Text=AnsiString((char*)ppOut);
free(ppOut);
}
Please keep this in mind: IT WORKS ONE TIME. One time.
It encrypts and decrypts.
The second time, it can ENCRYPT, but it can't EVER decrypt. As you can see I've added some stupid code in order to see why it is failing. Even with the debugger active, the program goes crazy, giving this information:
---------------------------
Information
---------------------------
Project C:\pb6\ibadmin\comenc.exe faulted with message: 'access violation at 0x40009729: write of address 0x00030de0'. Process Stopped. Use Step or Run to continue.
---------------------------
OK
---------------------------
The above is not happenning within the lines of my code. If I change the lines, the same problem is generated somewhere else.
With the debbuger I have been able to see it going past the DECRYPT() function, but it can not SHOW or copy the results to the memo object. I know this sounds crazy but, any ideas will be welcome.
R I Ohoran
Of course, neither step nor run are useable any more.
Reply
Originally posted by: prabu
i appreciate ur work . its indeed a good try.
ReplyOriginally posted by: Arti
Hi,
see MSDN examples - They are the same like your code.
Originally posted by: Thomas
thanks
The call of CryptImportKey failed with error: NTE_BAD_VER. The error means: "The key blob's version number does not match the CSP version. This usually indicates that the CSP needs to be upgraded." Where can i get an upgraded?
Thomas
Originally posted by: mok
I try to copy the source and put in a projects,but have some problem said that certain variable not declare. I already checked with MSDN and put all the file required. So, it will be nice if u can provide me a simple demo project. Thank
ReplyOriginally posted by: Trevor
The program does not function when compiled as UNICODE
ReplyOriginally posted by: Gerard J. Nicol
When I tried this code before it did not decrypt, have you fixed this now (you have not identified what has been updated).
Have you considered puting the code into an MFC class, it would be nice if the encrypted string was a CObject so that it could be easily serialized. You would also be able to separate the components of the encrypted string into separate members.
Anyway, keep up the good work Dr!
Reply