Jump to content

File crypter, with key-file.


jokke
 Share

Recommended Posts

Crypt UDF

Uppdated: now with errorhandling.

Features:

<*>Uses a keyfile with random insted of password algoritm, this makes the keyfile uniqe and should make it pretty damn hard to decrypt.

<*>Supports encryption and decryption, iwe tried images and executables and they where all working after en-to-de-crypt.

<*>Error handling added, my first version did not contain errohandling making it somewhat hard to use. Returining both a message and Seterror, if error should appear.

<*>Works fairly fast, a file 10kb takes about 520ms to encrypt and decrypt.

Example: (to make example work create a test file with some text inn it.)

#include <crypt.au3>

$keyfile        = 'Crypt.key'
$innfile        = 'test.txt'

$encrypted  = 'encrypted.txt'
$decrypted  = 'decrypted.txt'



If FileExists($keyfile) = 0 Then
    ConsoleWrite('Key file not found. Creating '&$keyfile & @CRLF)
    _CryptKeyGen($keyfile)
EndIf

ConsoleWrite('File encrypted inn '&_Crypt($keyfile,1,$innfile,$encrypted)&' ms.' & @CRLF)
ConsoleWrite('File decrypted inn '&_Crypt($keyfile,0,$encrypted,$decrypted)&' ms.' & @CRLF)

Crypt.au3

Edited by jokke
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.
Link to comment
Share on other sites

Releasing my first real UDF.

Features:

encrpyt/decrypt files with no need for any passwords, you only need a keyfile to do the job.

udf also contains a cryptkeygen for the mentioned keyfile.

And speed is the essence, code been thru about 20 stages before i came upp with the simplest code to do the job.

Note:

wont be fast on large files.

example: (to make example work create a test file with some text inn it.)

#include <crypt.au3>

$keyfile        = 'Crypt.key'
$innfile        = 'test.txt'

$encrypted  = 'encrypted.txt'
$decrypted  = 'decrypted.txt'
If FileExists($keyfile) = 0 Then
    ConsoleWrite('Key file not found. Creating '&$keyfile & @CRLF)
    _CryptKeyGen($keyfile)
EndIf

ConsoleWrite('File encrypted inn '&_Crypt($keyfile,1,$innfile,$encrypted)&' ms.' & @CRLF)
ConsoleWrite('File decrypted inn '&_Crypt($keyfile,0,$encrypted,$decrypted)&' ms.' & @CRLF)
really cool idea.. nice job you

should really do error checking because it went into a inifinite loop when test.txt didn't exists.

Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
Link to comment
Share on other sites

Thanks. :)

I'll see if im able to uppdate the script today with error checking included.

UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.
Link to comment
Share on other sites

  • 1 month later...

Iwe uppdated script with errorhadling now, hehe took abit more time then expected :)

UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.
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...