Posted 24 April 2005 - 11:05 PM
I was thinking that the fuctionality would be added as follows :-
FileOpen("filename",Mode,[password]) There would have to be 3 more "Mode values"
Mode 3 - Open Encrypted file for reading.
Mode 4 - Open/Create Encrypted file for writing.
Mode 5 - Open/Overwrite Encrypted file for writing.
I was not thinking some super delux 256 bit key pair here - for that we could file install an encrytion program and encrypt a File - but just enough to prevent casual viewing and a little bit of hacking.
Posted 24 April 2005 - 11:06 PM
Posted 25 April 2005 - 03:57 AM
Posted 25 April 2005 - 04:08 AM
Sven, which has been doing a lot of great work lately, made a MD5 function in AutoIt. Think that'll work?
Posted 28 April 2005 - 01:15 AM
Func _FileEncrypt($filename, $passkey, $outfilename)
$infile = FileOpen($filename, r)
$outfile = FileOpen($outfilename, w)
While Not EOF
$text = FileReadLine($infile)
$entext = _StringEncrypt(1, $text, $passkey)
Then just decrypt it to a string...
_DateAdd("d", -2, _NowCalcDate())
Posted 15 May 2005 - 05:00 AM
One other thing you might find useful is AxCrypt. Very good utility.
Link: AxCrypt Website
I hope that helps some. I will post my UDF in the Scripts and Scraps Forum.
Posted 16 May 2005 - 12:51 AM
Yea, I've seen those too They're called "FileEncrypt" ? Something simple like that, or vice versa, it was a while ago I've seen them...
Microsoft has crypto functions that you can use via DllCall. I was looking it over and it can be done in autoit.
Posted 16 May 2005 - 05:05 AM
Posted 16 May 2005 - 06:37 AM
This is my test script, just create a file a.txt (mine just had 'test') and the a.decrypt.txt should be the same, and the file a.encrypted is encrypted.
#cs vi:ts=4 sw=4: Ejoc #ce #include <crypto.au3> Opt("MustDeclareVars",1) ;encrypt a.txt using the password test and save as a.encrypt _FileEncrypt("a.txt","a.encrypt","test") ;reverse it _FileDecrypt("a.encrypt","a.decrypt.txt","test")
Edited by Ejoc, 16 May 2005 - 06:37 AM.
Posted 16 May 2005 - 08:12 AM
Thanks also for your brilliant contributions elsewhere in this community
I have tried the crypto.au3 - it works really well - this is going to be great for sending files around the place in a reasonably secure way.
in order to work on the encrypted file - this encrypted file is decrpted to a plain text file - if a script were to crash before measures can be taken to delete that file - you could leave potentialy classified info around in plain text on a PC.
is it possible to create an option to write the output directly to $var - this way decryted text would remain in memory rather than lying around as a plain text file.
Oopps - one more question.
Your DllStruct.au3 UDF calls kernel32.dll. Does this exist on a Win98/ME PC? - I am just thinking about a file encrypted on one PC - trying to decrypt it on a different OS.
Posted 16 May 2005 - 04:44 PM
Kernel32.dll goes back to win95
Posted 16 May 2005 - 08:50 PM
Will need new version of DllStruct.AU3 for it.
#cs vi:ts=4 sw=4: Ejoc #ce #include <crypto.au3> Opt("MustDeclareVars",1) Global $s = "This is a plain text line" Global $password = "PASSWORD" Global $filename = "encrypted.txt" Global $decrypted = "" ;encrypt the string and write a new file If Not _EncryptStringToFile($s,$password,$filename) Then MsgBox(0,"error","Error Encrypting") exit EndIf $decrypted = _DecryptFileToString($filename,$password) MsgBox(0,"decrypted",$decrypted)
Posted 16 August 2006 - 06:50 AM
thank you very much.
God Bless you...!
Posted 16 August 2006 - 07:58 AM
hello! im a student, i would like to ask for your help regarding our problem... our thesis, entitled Comparative study about Encryption Standards...i will be waiting for your suggestions about our thesis...
thank you very much.
God Bless you...!
What encryption standards are you going to compare? There have been several mentioned in this topic. Another thing is this is a very old thread (1 year). I dont know that here in the AutoIt community anyone is here to help with homework.
Good Luck with the thesis paper.
Go to the first page and check my post. It has a link in it to an encryption software that compares several encryption methods.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users