 |
|
 |
I do not get auto updates on this article as I don't have the PW for the account that this was submitted under.
Please instead email your questions to me at DarrollWalsh@yahoo.com. I will be glad to help anyone who has questions.
I am sorry to anyone who has asked for help that has not received it. I feel bad as I am sure I could have helped most people who were having issues.
- Darroll Walsh
Darroll
|
|
|
|
 |
|
 |
i need the explanation algorithm from the class becouse i use you'r class for my tesiss aplication..
thanks before
--newbe--
|
|
|
|
 |
|
 |
ACK!!
Sorry mate I didn't see this until just now almost a year later. I forgot the password to the account I originally wrote this in but if you or anyone else has questions email me @ darrollwalsh@yahoo.com. I'm really sorry I wasn't around to help you. I do not get notifications about new posts here.
Darroll
|
|
|
|
 |
|
 |
What would be the best way to use this class from a c# web-project?
|
|
|
|
 |
|
 |
DON'T!!
Use the .Net Encryption class. It is almost as easy as this one. If you still need assistance please email me at DarrollWalsh@yahoo.com
To use this in a C# app you will have to use interop to load a C++ dll. I know write in C# so please email me if you need assistance.
- Darroll
Darroll
|
|
|
|
 |
|
 |
Hi, is there a delphi translation for this class?
thankx
|
|
|
|
 |
|
 |
hi all,
i am trying to use as it is the rijndael algorithm..for encrypting and decrypting the xml file...using AES rijndael..32 bit key and block size and also the method is CBC..it adds a few characters at the end of the file which makes it an invalid XML file..while using BLANKs..I am getting the valid XML file..Now i have to do is a server side encryption of the XML files..from php script..so i am using mcrypt library to do the same..but when i use this class to decrypt the same file it says can't secrypt..while i am using the same key and all..there the function is MCRYPT_RIJNDAEL_256..CBC and ECB..but nothing is working..can anyone help me out there in doing the same..or if there is any encryption which works as same in php and vc++ so that i just have to use the function and can do the same..Please help me out..any pointers and ideas are highly appreciated..
Thanks a lot in advance..
Regards,
Himanshu
|
|
|
|
 |
|
 |
Thanks for the class, it's excellence! But I meet a problem through my test program. I set key "notification" and set the target "Add your control notification handler code here", and encode it , it's OK. But decode it, it's return miss 'e' at the end of string. I don't know any ARA, but realy want to known what's happened.
ARACrypt crypt;
CString _rKey, _rTarget, _rTemp;
_rKey = "notification";
_rTarget = "Add your control notification handler code here";
_rTemp = "Add your control notification handler code here";
crypt.TransformString(_rKey, _rTarget);
crypt.TransformString(_rKey, _rTarget);
ASSERT(_rTarget == _rTemp);
ASSERT(_rTarget == "Add your control notification handler code her");
|
|
|
|
 |
|
 |
ASSERT(_rTarget == "Add your control notification handler code her");
==>
ASSERT(_rTarget == "Add your control notification handler code here");
|
|
|
|
 |
|
 |
No doubt this code is simplest & easiest to use. But I am facing one problem. I have an application A (in which _UNICODE is defined) which encrypts some text & stores the encrypted text in the registry. Later if I try to read the encrypted text from the registry, decrypt it using the same application A, I face no problem. But if I read it through another application B (which is not using _UNICODE) it gives some invalid text after decryption. Similiarly if application B encrypts some text & I try to decrypt it by using application A it also returns some invalid string. What should I do? I have to use both the applications A (with unicode support) & B (without unicode support) however the text is simple CString (e.g. abc123 i.e. alphanumeric characters). Do I have to perform some unicode conversion on the string or anything else?
I will appreciate your urgent response. Thanks.
|
|
|
|
 |
|
 |
It was exactly what I was looking for - as simply as possible.
-------------------------
Adam Koszlajda
Codec System
Software Developer
|
|
|
|
 |
|
 |
whats the story with using this in our own projects ? are there licence issues?
regards
bryce
|
|
|
|
 |
|
|
 |
|
 |
What character can appear in the return strings? can '\0' '\n' and other special can be produced by the code? If that, I will be very careful of using this class. thx.
|
|
|
|
 |
|
 |
The \n does fine in the key and the string, though the \0 does not. I hope this helps.
\0 will work if entered as \\0 or from an edit box as \0, windows does the conversion to \\0 from an edit box.
Darroll
|
|
|
|
 |
|
|
 |
|
 |
Nice, good security. The only draw back I see is that you need 2000, or XP. For those who still need to develop for 9X it wouldn't work. If you don't program for 9X then take a look at this class.
Darroll
|
|
|
|
 |
|
 |
Cool!
Jack
---------------------------------------
http://www.ucancode.net/ (Xtreme Diargam++ MFC Library)
|
|
|
|
 |
|
 |
You should have checked the code out first before you posted it, it seems this Kurtz guy didn't do this for a production environment...
The domain and range of this class is way too small! This code allows only the encryption and decryption of strings to and from strings, which is IMHO a way too small domain and range. Also, what happens if the code is unicode? I haven't tried it in unicode myself, but looking at TransformChar(unsigned char&) you get the hint that it will not work.
Also, it falls back on a "special key" if the user doesn't provide a key - it would be better if it just threw an exception. After all, trying to encrypt data without a key is not be semantically correct - it's like driving a car without a key - you're bound to get into trouble..
Also, such a special key is "security by obscurity" and is a potential big security breach in this implementation.
I strongly advise you not to use Kurtz code in a production environment. Take a look at the crypto API, openssl or some other cryptography package.
Sonorked as well: 100.13197 jorgen
FreeBSD is sexy.
|
|
|
|
 |
|
 |
Can't argue with you. Flat out for a production level project I would advise that you not use this. But if you are new and just want basic crypto this is for you. Simple is just that, simple. If you need bells and whistles go to the class that offers bells and whistles. This is a very stripped down, almost basic encryption. This example was never ment to be anything but very simple, and for begginers, simple is good. Against the average user this encryption is fine. If all you want to do is prevent the average user from playing around with settings, registry entries, ect, this will work great. Please don't make this out to be anything greater than it is. It is just simple, easy crypto for those who don't need the ultimate in security.
|
|
|
|
 |
|
 |
It seems perfect for the use I need it for so I think its cool and easy.
|
|
|
|
 |
|
 |
Unfortunatelly that is true it doesnt work properly with Unicode, however I can not expect that freeware has everything inside, so for simple coding use I suggest this tool.
-------------------------
Adam Koszlajda
|
|
|
|
 |
|
 |
http://www.codeproject.com/cpp/cryptit.asp
Hope yours does better than mine did
Regards,
Dan
|
|
|
|
 |