Jump to content

Encrypted file read


Recommended Posts

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?

Link to comment
Share on other sites

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!

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...