
Your strings are not safe!!!
Re: MD5 is ok for casual encryption
> MD5 [...] is CERTAINLY suitable for turning your strings unrecognizable
> sections of code
Not really... how? All it does is return a signature from text. It cannot
recreate the text from the signature. You need RC4 encryption for that.
> sections of code
Not really... how? All it does is return a signature from text. It cannot
recreate the text from the signature. You need RC4 encryption for that.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
In RC4 does key$ get encoded and decoded as well?
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
> In RC4 does key$ get encoded and decoded as well?
RC4 doesn't include the password/key in the encryption. You need to supply
it separately. This means the user can type it in (instead of having the key
stored on disk) and the encrypted string can be recreated from it. See:
In both lines, pw$ = the password that the user supplies, such as from an
InputRequester. The second line is "StringToBeEncrypted" in encrypted
format, which as you can see is different to MD5 encryption which is just
a signature of the string, rather than the string itself.
RC4 doesn't include the password/key in the encryption. You need to supply
it separately. This means the user can type it in (instead of having the key
stored on disk) and the encrypted string can be recreated from it. See:
Code: Select all
; This example uses Paul's RC4 lib.
Debug CryptString("StringToBeEncrypted",pw$)
Debug DecryptString("AC814A672259E0C12334EE125139D616A964C200",pw$)
InputRequester. The second line is "StringToBeEncrypted" in encrypted
format, which as you can see is different to MD5 encryption which is just
a signature of the string, rather than the string itself.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
Thanks PB, now I understand and it works for what I need it for. 

www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.