Jump to content

Script Ideas...


Recommended Posts

Hi SlimShady,

First,

I search how to encrypt a text file (eg. a ini file with parameters) with a given script which tell you what is the password or any phrase and then encrypt the file.

Second,

In the second program, the main one, a fonction wich decrypt file to read it (eg a function) without any prompt for the password (included in the function) and then after reincrypt or delete the file.

If you could help me, ...

Thanks by advance

MooCan :D

Link to comment
Share on other sites

  • Replies 68
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I don't feel comfortable using "home-made" encryption tools.

I assume they're not safe.

I prefer using commercial tools like the one built-in PowerArchiver and in Windows 2000/XP/2003.

People here have made their own encryption method.

Search the Scripts and Scraps forum for encrypt.

Link to comment
Share on other sites

Regarding encryption:

AxCrypt is an open-source, GNU-licensed encryption package with impressive features, IMHO. And for use from scripts, it has command line switches. For example, this line encrypts a file after inputting a password via AxCrypt's secure dialog:

Run('C:\Program Files\Axon Data\AxCrypt\AxCrypt.exe -z "C:\Documents and Settings\Homer\Desktop\Addresses.txt"')

Optionally, you could include the password in the command switches. You could open the file in its default program. Etc.

Link to comment
Share on other sites

Open-source is even worse! Don't you think people can use the source to decrypt an encrypted file?

Blowfish encryption has yet to be cracked other than the typical brute force methods, and it's open source. Just because it's open source doesn't mean it's easy to crack...

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

Blowfish encryption has yet to be cracked other than the typical brute force methods, and it's open source. Just because it's open source doesn't mean it's easy to crack... Ok, you're right. I just assumed it was easy to crack.
Link to comment
Share on other sites

Don't you think people can use the source to decrypt an encrypted file?

No, I don't. Also, it's pointless to rely on an encryption system that has not been scrutinized and challenged by the crypto-boffins.

Edit: Oops. Sorry. SlimShady's reply wasn't there when I posted.

Edited by oompah
Link to comment
Share on other sites

I have no idea how an eBook compiler works or looks like.

I like challenges.

I'm working on the "Convert Anything" now.

So after I finish that...

If you tell me more about it, I'll see what I can do.

The main thing that got me stumped is how to make it easy for a user to compile the script to an exe with the hta of his choice compiled inside it with a password to extract it

Rick

Link to comment
Share on other sites

The main thing that got me stumped is how to make it easy for a user to compile the script to an exe with the hta of his choice compiled inside it with a password to extract it

Rick

it's not complete. I was thinking while I was typing.

You can use FileInstall. Here's what you can do:

  • Ask user which hta file
  • Ask user for password to decompile (inputbox + password char)
  • FileInstall the script itself + the hta file
  • (here is where you have to find a way to let a user make a compilation of the two files)
  • When user runs the compiled exe, the user should enter a password (the passphrase)
  • (argh... this sucks....)
I'm sorry. I have no idea...

You weren't clear. Tell me what you think.

I think you have it all in your head. Post it and maybe we can figure this out together.

Edited by SlimShady
Link to comment
Share on other sites

it's not complete. I was thinking while I was typing.

You can use FileInstall. Here's what you can do:

  • Ask user which hta file

  • Ask user for password to decompile (inputbox + password char)

  • FileInstall the script itself + the hta file

  • (here is where you have to find a way to let a user make a compilation of the two files)

  • When user runs the compiled exe, the user should enter a password (the passphrase)

  • (argh... this sucks....)
I'm sorry. I have no idea...

You weren't clear. Tell me what you think.

I think you have it all in your head. Post it and maybe we can figure this out together.

Here's another problem

source The source path of the file to compile. This must be a literal string; it cannot be a variable.

Not that big of a deal the hta can have a specific name and I can use .\hta for a subfolder

You got the idea and you're stumped the same place I am

hehe wife and boy both asleep on the couch. They're so cute

I wonder if aut2exe, yes a separate compiled exe the first exe using au2exe command line to compile the ebook with the password

Okay eyes half close - or eyes wide shut - no wait that was s wierd movie

Rick

Link to comment
Share on other sites

Ok, I'm practically finished with "Convert Anything".

You have to add the things you want to convert from .. to ... , manually.

Limitations:

None

You can only add conversions that don't require formulas.

Meters <=> Feet: Yes

Dollars <=> Euros: Yes

Celsius <=> Fahrenheit: No Yes

So that's a little problem.

If you give me a list with common used conversions, I will implement them.

I have finished Convert Anything.

It now supports formulas! (thanks to Larry)

So you can convert (examples):

  • pounds <=> ounces
  • tons <=> kilograms
  • pounds <=> grams
  • Celsius <=> Fahrenheit
  • square foot <=> square meter
  • liters <=> pints
  • yards <=> feet
Download below:

http://www.autoitscript.com/fileman/users/public/SlimShady/converter.au3

Link to comment
Share on other sites

Here's another problem

source The source path of the file to compile. This must be a literal string; it cannot be a variable.

Not that big of a deal the hta can have a specific name and I can use .\hta for a subfolder

You got the idea and you're stumped the same place I am

hehe wife and boy both asleep on the couch. They're so cute

I wonder if aut2exe, yes a separate compiled exe the first exe using au2exe command line to compile the ebook with the password

Okay eyes half close - or eyes wide shut - no wait that was s wierd movie

Rick

You're post confuses me :D (the sixth line, to be specific)

If you want me to help you, you'll have to be clear.

Edited by SlimShady
Link to comment
Share on other sites

---------------------------

AutoIt Error

---------------------------

Line 148 (File "E:\Programs\AutoIt3\Examples\june10\convert.au3"):

If GUIRead($radio_1) = 1 Then $string = $CheckAll[1]

If GUIRead($radio_1) = 1 Then $string = $CheckAll^ ERROR

Error: Subscript used with non-Array variable.

---------------------------

OK

---------------------------

Link to comment
Share on other sites

---------------------------

AutoIt Error

---------------------------

Line 148  (File "E:\Programs\AutoIt3\Examples\june10\convert.au3"):

If GUIRead($radio_1) = 1 Then $string = $CheckAll[1]

If GUIRead($radio_1) = 1 Then $string = $CheckAll^ ERROR

Error: Subscript used with non-Array variable.

---------------------------

OK

---------------------------

Of course....

$ReadValue = IniRead($IniFile, $FunctionName, "Value", "")
   
   $CheckAll = $ReadValue

$CheckAll isn't a Array. (Check this Slim)

Link to comment
Share on other sites

No, no, no. It will turn into an array if a function is made.

So, add a function and follow the instructions.

If you don't know what to fill in, ask me.

I repaired the script to find the location of AutoIt3.exe

http://www.autoitscript.com/fileman/users/public/SlimShady/converter.au3

Link to comment
Share on other sites

You're post confuses me :D (the sixth line, to be specific)

If you want me to help you, you'll have to be clear.

I wonder if aut2exe, yes a separate compiled exe the first exe using au2exe command line to compile the ebook with the password

A bit tired again. I think one exe can use aut2exe command line to compile a different exe with the hta embedded in it just have to be a

runwait(@comspec & " /c .\modules\aut2exe mygeneratedscript.au3 myexe.exe mypassword,@scriptdir,@sw_hide)

or whatever the format is

That might be the way around installing the hta into the exe is to use a different compiled generated script where the user can set the password

Rick

Link to comment
Share on other sites

Are you going to FileInstall Aut2Exe?

So I have to assume a user has already a compiled executable with the hta embedded in?

If you answered those questions I'll start working.

Ok, this is what I'm gonna do:

Create a main script (with FileInstall Aut2Exe) that asks

- where the uncompiled eBook is

- where the final exe should be saved

- for a password

- compiles: eBook with *unlock script (see below) and password

The unlock script will contain the password and a FileInstall for the eBook.

It will be made dynamically after user enters a password in the main script.

The unlock works this way:

- On startup, a random directory is made in the Temp directory

- User must enter a password, then:

- If password is correct, user gets a file save dialog (for the eBook)

- If password is not correct, he will get a msgbox with: retry, cancel

Edited by SlimShady
Link to comment
Share on other sites

Are you going to FileInstall Aut2Exe?

So I have to assume a user has already a compiled executable with the hta embedded in?

If you answered those questions I'll start working.

Ok, this is what I'm gonna do:

Create a main script that asks

- where the compiled eBook is

- where the final exe should be saved

- for a password

- compiles: eBook with *unlock script (see below) and password

The unlock script will contain the password and a FileInstall for the eBook.

It will be made dynamically after user enters a password in the main script.

The unlock works this way:

- On startup, a random directory is made in the Temp directory

- User must enter a password, then:

- If password is correct, user gets a file save dialog (for the eBook)

- If password is not correct, he will get a msgbox with: retry, cancel

Are you going to FileInstall Aut2Exe?

Either that or just include it in the zipped file in the .\modules subfolder

So I have to assume a user has already a compiled executable with the hta embedded in?

Nope it would be embedded in the second exe the user creates on the fly himself/herself. Wait though the second script is what would be distributed to readers so sorry the answer would also be a yes since I want to make this for both producers and for readers. In other words both are needed for compiling and then for opening

I think there would be a problem with the user selecting the name or path of the hta for fileinstall since fileinstall does not accept variables as far as I know

Thanks Slim

Rick

Link to comment
Share on other sites

Are you going to FileInstall Aut2Exe?

Either that or just include it in the zipped file in the .\modules subfolder

So I have to assume a user has already a compiled executable with the hta embedded in?

Nope it would be embedded in the second exe the user creates on the fly himself/herself. Wait though the second script is what would be distributed to readers so sorry the answer would also be a yes since I want to make this for both producers and for readers. In other words both are needed for compiling and then for opening

I think there would be a problem with the user selecting the name or path of the hta for fileinstall since fileinstall does not accept variables as far as I know

Thanks Slim

Rick

I was thinking about that, that's why:

The unlock script will contain the password and a FileInstall for the eBook.

It will be made dynamically after user enters a password in the main script.

A second script is made that has the full path to the eBook (FileInstall) and contains the password.

I'll adjust my previous post to your requests.

Link to comment
Share on other sites

I've made the eBook Compiler.

Your users can only extract the eBook with a password. Unless:

  • User knows the filename of the eBook (he can search through the hard drive)
I found out that to compile a script, you have to have these files in the same folder:
  • Aut2Exe.exe
  • AutoItSC.bin
  • upx.exe
Just run the script and follow the instructions.

BTW: I made the script that it FileInstalls the needed files from the current folder (so you may have to change that to your situation)

Here it is:

http://www.autoitscript.com/fileman/users/public/SlimShady/eBookComp_main.au3

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