au3scr Posted April 15, 2008 Posted April 15, 2008 How to read encrypted file? $crypt = _StringEncrypt (1,$sCmdFile,"keerulinesalas6na",1)oÝ÷ ØÚ0"¯zØ^~e£§X§y«¢+ØÀÌØí±½ô¥±I1¥¹¡MÉ¥ÁѥȵÀìÅÕ½ÐìÀäÈíÍÑÑ¥¹ÌÅÕ½Ðì°Äؤ I should decrypt it but how i read text if its decrypted? Beacause if i type now $load = FileReadLine($decrypt, 16) then it searches file at this location but there is no any faile at this location So i need some other methid to read it? or how should i do it?
au3scr Posted April 15, 2008 Author Posted April 15, 2008 I could do it with saving new file to temp directory but i dont want do it.. I need some way to make it work inside script
monoceres Posted April 15, 2008 Posted April 15, 2008 I didn't understand anything from your code snippets but here's how you should do it: #include <string.au3> _WriteCryptFile("document.txt","andreas","Super-Secret Text") MsgBox(0,"",_ReadCryptFile("document","andreas")) Func _WriteCryptFile($filename, $password, $data) $data=_StringEncrypt(1,$data,$password) FileWrite($filename,$data) EndFunc Func _ReadCryptFile($filename,$password) $data=FileRead($filename) MsgBox(0,$data,$data) Return _StringEncrypt(0,$data,$password) EndFunc Broken link? PM me and I'll send you the file!
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