Jump to content

Custom encryption


Recommended Posts

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!

Link to comment
Share on other sites

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
Link to comment
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.
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...