Jump to content



Photo

Pure Autoit encryption funcs


  • Please log in to reply
16 replies to this topic

#1 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 03 October 2008 - 08:09 PM

I've made some encryptions func in autoit. No COM No DLL just pure Au3 :)
docs:
IN THE PASSWORD DO NOT HAVE REPEATING CHARACTERS
ex.
the pass zz will not work becuase of the two z but the pass zZ will work becuase the letter z has a different ascii code than the letter Z. I know it's confusing
encryption: sen("plaintext","password") example sen("lol","AutoiT") decryption: sde("chipertext","password") example sde("45 72 45","AutoiT")

Tell me what you think!
Edit: i edited the _stringencrypt example for this udf it's enc.au3 the encryptor is em.au3

Attached Files

  • Attached File  em.au3   2.75K   208 downloads
  • Attached File  enc.au3   2.24K   243 downloads

Edited by mmavipc, 04 October 2008 - 12:17 AM.

Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N





#2 Xand3r

Xand3r

    Aka TheMadman

  • Active Members
  • PipPipPipPipPipPip
  • 454 posts

Posted 03 October 2008 - 09:04 PM

crude .. :P but might prove usefull
Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

#3 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 03 October 2008 - 11:20 PM

crude .. :P but might prove usefull

lol?
Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

#4 TehWhale

TehWhale

    Whalee..

  • Banned (NOT IN USE)
  • 1,482 posts

Posted 03 October 2008 - 11:29 PM

lol?

lol? Whats so funny about that?

But these can be easily broken, they are just switching the stuff to binary...

If you really want to get stuff encrypted, check this out:
http://www.autoitscript.com/forum/index.php?showtopic=76062
It requires a nice .dll, but it encrypts/decrypts SUPER-FAST and it's not easily broken.

Edited by SwiftBurns, 03 October 2008 - 11:32 PM.


#5 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 03 October 2008 - 11:40 PM

lol? Whats so funny about that?

But these can be easily broken, they are just switching the stuff to binary...

If you really want to get stuff encrypted, check this out:
http://www.autoitscript.com/forum/index.php?showtopic=76062
It requires a nice .dll, but it encrypts/decrypts SUPER-FAST and it's not easily broken.

It isn't switching stuff to binary it's just messing around with the position of the chars and the password switches it further
Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

#6 TehWhale

TehWhale

    Whalee..

  • Banned (NOT IN USE)
  • 1,482 posts

Posted 03 October 2008 - 11:51 PM

It isn't switching stuff to binary it's just messing around with the position of the chars and the password switches it further

You use Binary in your code, and it's not wise to write to a text file, as it can be read, etc, and be deleted in the process. It also doesn't work with special characters like ÿ or others.

Edited by SwiftBurns, 03 October 2008 - 11:52 PM.


#7 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 04 October 2008 - 12:11 AM

You use Binary in your code, and it's not wise to write to a text file, as it can be read, etc, and be deleted in the process. It also doesn't work with special characters like ÿ or others.

oh that binary. that was just for debug
and encrypting special chars works for me what happens to you?
Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

#8 TehWhale

TehWhale

    Whalee..

  • Banned (NOT IN USE)
  • 1,482 posts

Posted 04 October 2008 - 12:15 AM

oh that binary. that was just for debug
and encrypting special chars works for me what happens to you?

It doesn't work it gives me some random stuff after decryption.

#9 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 04 October 2008 - 12:16 AM

It doesn't work it gives me some random stuff after decryption.

maybe I uploaded a old version just a sec
Edit: k updates the dls on the main post
Edit: if it still dosn't work then tell me your au3 version and the password your using if any

Edited by mmavipc, 04 October 2008 - 12:25 AM.

Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

#10 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 04 October 2008 - 02:43 PM

hmm I'm thinking about turning this into a au3 plugin dll just for speed what do you think?
Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

#11 TehWhale

TehWhale

    Whalee..

  • Banned (NOT IN USE)
  • 1,482 posts

Posted 04 October 2008 - 02:48 PM

hmm I'm thinking about turning this into a au3 plugin dll just for speed what do you think?

Sure!

#12 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 04 October 2008 - 05:28 PM

Is there anyone who would like to help me make the dll some of these C++ string funcs are confusing
Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

#13 ProgAndy

ProgAndy

    You need AutoItObject

  • MVPs
  • 2,508 posts

Posted 04 October 2008 - 05:48 PM

If you use a DLL there will be code for stronger encryption algorithms, i think :P
*GERMAN* Posted Image [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

#14 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 04 October 2008 - 08:09 PM

can anyone convert this
$ant = StringLeft($an, 35) & $lol & stringright($an,(StringLen($an)-35))

into c++? it's confusing to convert stringright
all the vars in there are string class and they have the same name except for the $ which is removed
edit : nvm i dled the au3 sourcecode and found this lovely str.assign( sInput, sInput.length()-nCount, sInput.length() );

Edit: quick update on the dll the encrypt still has a few bugs but
encrypting 5,181 bytes
pure au3 149ms
the dll 11ms
as you can probably see the awsomeness of having a dll

Edited by mmavipc, 04 October 2008 - 11:56 PM.

Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

#15 monoceres

monoceres

    asdf

  • MVPs
  • 3,720 posts

Posted 05 October 2008 - 09:22 PM

can anyone convert this

$ant = StringLeft($an, 35) & $lol & stringright($an,(StringLen($an)-35))
into c++? it's confusing to convert stringright
all the vars in there are string class and they have the same name except for the $ which is removed
edit : nvm i dled the au3 sourcecode and found this lovely str.assign( sInput, sInput.length()-nCount, sInput.length() );

Edit: quick update on the dll the encrypt still has a few bugs but
encrypting 5,181 bytes
pure au3 149ms
the dll 11ms
as you can probably see the awsomeness of having a dll

How are you storing the string in C++?
In a char[] or std::string?
Posted ImageIs the link in my post broken? I do not longer own my domain, all the files are moved to my new domain.Example: http://monoceres.se/test.au3 -> http://andhen.mine.nu/monoceres.se/test.au3

#16 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 05 October 2008 - 09:23 PM

How are you storing the string in C++?
In a char[] or std::string?

std::string
Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

#17 mmavipc

mmavipc

    Spammer!

  • Banned (NOT IN USE)
  • 287 posts

Posted 23 November 2008 - 08:03 PM

Okay I'm giving up on creating a hybrid of my own std::string code and the old au3 src. I'm going to try and make it with only the old au3 src i'll post updates as i go
Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users