Jump to content
Sign in to follow this  
au3scr

Encrypted file read

Recommended Posts

au3scr

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?


Share this post


Link to post
Share on other sites
au3scr

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


Share this post


Link to post
Share on other sites
monoceres

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!

Share this post


Link to post
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
Sign in to follow this  

×