Sign in to follow this  
Followers 0
Sparrowlord

Simple Question

8 posts in this topic

Is there a way to encrypt a certain string of my script?

Its sort of important information and if someone was to decompile my script they could see the information, what I am asking is if there is anyway I can have it encrypted so the actual plain text isn't in the script at all but some how the script still knows the encrypted text?

Share this post


Link to post
Share on other sites



MD5 hash the code and put the hash in your code. You'll need a MD5 routine in your script to verify the code is correct.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

MD5 hash the code and put the hash in your code. You'll need a MD5 routine in your script to verify the code is correct.

Ouch I just checked into that, seems pretty advanced and complicated just to hash a string ^_^

Is there any easier ways to do it? :)

Share this post


Link to post
Share on other sites

yes, but the easy way is also easier to crack

look at:

_StringEncrypt()

in the help file

Share this post


Link to post
Share on other sites

But I thought with _StringEncrypt() you actually have to have the plain-text in the script? I am trying to avoid putting the plain-text into the script :)

Share this post


Link to post
Share on other sites

But I thought with _StringEncrypt() you actually have to have the plain-text in the script? I am trying to avoid putting the plain-text into the script :)

At some point, this plain-text will have to show up at somwhere, or it can just be an variable.

Share this post


Link to post
Share on other sites

or you can just put the already encrypted text in another file, says data.ecp, in which the program will first check the existence of the attached file, then check for file hash for any modification and only then will the program decipher encrypted text from attached file..

Share this post


Link to post
Share on other sites

Maybe you can use this for an idea

ClipPut(_stringEncrypt(1,"This is some line of text","Password",3))
MsgBox(0, "TEST", ClipGet() & @CRLF & _StringEncrypt(0,ClipGet(),"Password",3))

So you could do the same by using

$enc = "CC32D0D88ECE6F9A945C6E6DA55BBDCF47A7AC90CE82E724E42D683A3EDC3E0D61FBFF0EBC7383EEE99CD049936A1135

A11EF1DD7DAA65DBD1E15982907FB4C50E447D989EED5DFF71155691554303FDB5D8EECAC0EFFF35A08052EA2EDA9F6624C6

7420157E8667DEEF9315BB205BCD83D9F0435F9BC226A449E083F38032D02F4B449FB0A16728523F7B42F0640FA65F1D4341

C6A904F1F3732FAC7E08D2E078B35C8D7CF4D038A2E14B0D6A5ACC9A9B4F826B357BC10560B4C189579E33A03546BB7062CD

0E18";;Enc Lvl = 3

MsgBox(0,"TEST",_StringEncrypt(0, $enc, "Password", 3)

Watch for line wrap in the $enc = line. It should be all one line.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0