Sign in to follow this  
Followers 0
RaenGar

Custom encryption

6 posts in this topic

Hello everyone

Heres my problem - I need to encrypt a string. _StringEncrypt() is good, but it generates very long strings; I need the encrypted string to be of maximum length of 2x the original string. I was thinking of some sort of character replacement, since i dont need very hard encryption. But! I still would like to use a password.

Any advice on how to do that?

Thanks in advance!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

simple?

assign letters to numbers like

$letterA = 1

not sure if it works though lol

you can replace the numbers with anything...

Edited by rrrm99

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

simple?

assign letters to numbers like

$letterA = 1

not sure if it works though lol

you can replace the numbers with anything...

According to what I know of AutoIt, this Random() way wont work... and A = 1 method is not simple, its dumb =) While I may use it in the end... But id need the whole routine how to convert then, have no idea how.

Any other ideas?

Edited by RaenGar

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

change to ascii code

;to encrypt
$encrypt = ASC("A")

;to decrypt
$decrypt = Chr($Ascii)

;to show in a message box
Msgbox(0, "Decrypt", $decrypt)
Edited by rrrm99

Share this post


Link to post
Share on other sites

change to ascii code

;to encrypt
$encrypt = ASC("A")

;to decrypt
$decrypt = Chr($Ascii)

;to show in a message box
Msgbox(0, "Decrypt", $decrypt)
Thanks again, but IMHO, its the first thing one who wants to break a crypt tries =) Id like it to be a real encryption, with a key... Just dont need a very high level one.

Share this post


Link to post
Share on other sites

Have you bothered to look at all the encryption methods posted in the Examples script forum?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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