moocan Posted June 9, 2004 Share Posted June 9, 2004 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 Link to comment Share on other sites More sharing options...
SlimShady Posted June 9, 2004 Author Share Posted June 9, 2004 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 More sharing options...
oompah Posted June 9, 2004 Share Posted June 9, 2004 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 More sharing options...
SlimShady Posted June 9, 2004 Author Share Posted June 9, 2004 Open-source is even worse! Don't you think people can use the source to decrypt an encrypted file? Link to comment Share on other sites More sharing options...
pekster Posted June 9, 2004 Share Posted June 9, 2004 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 More sharing options...
SlimShady Posted June 9, 2004 Author Share Posted June 9, 2004 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 More sharing options...
oompah Posted June 9, 2004 Share Posted June 9, 2004 (edited) 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 June 9, 2004 by oompah Link to comment Share on other sites More sharing options...
tutor2000 Posted June 9, 2004 Share Posted June 9, 2004 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 itRick Link to comment Share on other sites More sharing options...
SlimShady Posted June 9, 2004 Author Share Posted June 9, 2004 (edited) 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 itRickit's not complete. I was thinking while I was typing.You can use FileInstall. Here's what you can do:Ask user which hta fileAsk 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 June 9, 2004 by SlimShady Link to comment Share on other sites More sharing options...
tutor2000 Posted June 11, 2004 Share Posted June 11, 2004 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 fileAsk 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 problemsource 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 subfolderYou got the idea and you're stumped the same place I amhehe wife and boy both asleep on the couch. They're so cuteI wonder if aut2exe, yes a separate compiled exe the first exe using au2exe command line to compile the ebook with the passwordOkay eyes half close - or eyes wide shut - no wait that was s wierd movieRick Link to comment Share on other sites More sharing options...
SlimShady Posted June 11, 2004 Author Share Posted June 11, 2004 Ok, I'm practically finished with "Convert Anything".You have to add the things you want to convert from .. to ... , manually.Limitations:NoneYou can only add conversions that don't require formulas.Meters <=> Feet: YesDollars <=> Euros: YesCelsius <=> Fahrenheit: No YesSo 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 <=> ouncestons <=> kilogramspounds <=> gramsCelsius <=> Fahrenheitsquare foot <=> square meterliters <=> pintsyards <=> feetDownload below:http://www.autoitscript.com/fileman/users/public/SlimShady/converter.au3 Link to comment Share on other sites More sharing options...
SlimShady Posted June 11, 2004 Author Share Posted June 11, 2004 (edited) Here's another problemsource 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 subfolderYou got the idea and you're stumped the same place I amhehe wife and boy both asleep on the couch. They're so cuteI wonder if aut2exe, yes a separate compiled exe the first exe using au2exe command line to compile the ebook with the passwordOkay eyes half close - or eyes wide shut - no wait that was s wierd movieRickYou're post confuses me (the sixth line, to be specific)If you want me to help you, you'll have to be clear. Edited June 11, 2004 by SlimShady Link to comment Share on other sites More sharing options...
bobheart Posted June 11, 2004 Share Posted June 11, 2004 --------------------------- 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 More sharing options...
Josbe Posted June 11, 2004 Share Posted June 11, 2004 --------------------------- 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) • AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
SlimShady Posted June 11, 2004 Author Share Posted June 11, 2004 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.exehttp://www.autoitscript.com/fileman/users/public/SlimShady/converter.au3 Link to comment Share on other sites More sharing options...
tutor2000 Posted June 12, 2004 Share Posted June 12, 2004 You're post confuses me (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 passwordA 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 isThat 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 passwordRick Link to comment Share on other sites More sharing options...
SlimShady Posted June 12, 2004 Author Share Posted June 12, 2004 (edited) 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 passwordThe 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 June 12, 2004 by SlimShady Link to comment Share on other sites More sharing options...
tutor2000 Posted June 12, 2004 Share Posted June 12, 2004 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 passwordThe 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, cancelAre you going to FileInstall Aut2Exe?Either that or just include it in the zipped file in the .\modules subfolderSo 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 openingI 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 knowThanks SlimRick Link to comment Share on other sites More sharing options...
SlimShady Posted June 12, 2004 Author Share Posted June 12, 2004 Are you going to FileInstall Aut2Exe?Either that or just include it in the zipped file in the .\modules subfolderSo 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 openingI 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 knowThanks SlimRickI 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 More sharing options...
SlimShady Posted June 13, 2004 Author Share Posted June 13, 2004 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.exeAutoItSC.binupx.exeJust 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 More sharing options...
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