If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
wxString encrypted = RotEncryption(RotEncryption(_T("Welcome to wxWidgets!"),32,(1<<(8*sizeof(wxChar)-1))-1),-1<<((8*sizeof(wxChar))-1),-1);
wxString decrypted = RotEncryption(RotEncryption(encrypted,-1<<((8*sizeof(wxChar))-1),-1),32,(1<<(8*sizeof(wxChar)-1))-1);
Notes:
- Lower and Upper value can't be both odd or even.
- The above example uses range NEGETIVE_MAX_CHAR to -1 and 32 to POSITIVE_MAX_CHAR to do encryption.
CrashX wrote:Well if you keep running this function with different ranges then it becomes a bit more difficult to break.
Sorry, but this is not quite correct. using different ranges won't make it harder to break or more secure. In fact it won't change a thing if I already guessed that it might be a kind of ROT algorithm.
CrashX wrote:Where can I download wx3DES ? Source Code?
Most algorithm that are considered to be "secure" have free implementations flying around. Crypto++ is quite good, openssl has many encryption modules available as well.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda