RaenGar Posted July 14, 2007 Share Posted July 14, 2007 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 More sharing options...
rrrm99 Posted July 14, 2007 Share Posted July 14, 2007 (edited) simple? assign letters to numbers like $letterA = 1 not sure if it works though lol you can replace the numbers with anything... Edited July 14, 2007 by rrrm99 Link to comment Share on other sites More sharing options...
RaenGar Posted July 14, 2007 Author Share Posted July 14, 2007 (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 July 14, 2007 by RaenGar Link to comment Share on other sites More sharing options...
rrrm99 Posted July 14, 2007 Share Posted July 14, 2007 (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 July 14, 2007 by rrrm99 Link to comment Share on other sites More sharing options...
RaenGar Posted July 14, 2007 Author Share Posted July 14, 2007 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 More sharing options...
Moderators SmOke_N Posted July 14, 2007 Moderators Share Posted July 14, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now