Jump to content

Decrypt File


Recommended Posts

Anyone can suggest of a way to _Crypt_DecryptFile to Array on the go, just like IniReadSection would do for an ini without decrypting to file at first

using an encrypted ini here ..

TIA

Edited by Deye
Link to comment
Share on other sites

@Deye,

actually, that would be a lot easier than you might think.

look inside the _Crypt_DecryptFile function. you'll see it reads the encrypted file, decrypts it in memory, then writes the decrypted data to file. you should be able to rewrite it to return the decrypted data as a string.

then, parsing the data in memory is easy. i remember @guinness has a nice UDF to handle ini file in memory, although i cannot seem to locate that topic at the moment.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

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