aphesia Posted March 13, 2009 Share Posted March 13, 2009 hi, i have searched, downloaded alot of scripts ,... but havent figured out how to crypt a file (no matter which file) with a password u set. So i right click on the file , get in context "cryp/decrypt" and it will ask me for the password and crypt or decrypt it. Ofcourse the context stuff isn´t needed.. i just need the cryp/decrypt part as i rly cant get it work.. doesnt matter which udf i use i got a script which crypted files with some crypting lvl.. but this is rly buggy and only works with .txt or .ini.. same for all the other crypt scripts i tried yet. any help? thx bb Link to comment Share on other sites More sharing options...
James Posted March 13, 2009 Share Posted March 13, 2009 Read the file into a variable, then use _StringEncrypt() to encrypt the variable, then write it back. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
aphesia Posted March 13, 2009 Author Share Posted March 13, 2009 this only works with text files? Link to comment Share on other sites More sharing options...
James Posted March 13, 2009 Share Posted March 13, 2009 You can make it to only show on .txt files yes. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
aphesia Posted March 13, 2009 Author Share Posted March 13, 2009 no i thought this could only crypt .txt files or .ini files.. so no .exe files or ..jpg or what ever which crypting lvl is recommended? cant i somehow get my own string to crypt with? so it will crypt with my string + pw? Link to comment Share on other sites More sharing options...
KaFu Posted March 13, 2009 Share Posted March 13, 2009 Check out these functionshttp://www.autoitscript.com/forum/index.php?showtopic=76976 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Developers Jos Posted March 13, 2009 Developers Share Posted March 13, 2009 Why would you want to encrypt program/picture files? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
KaFu Posted March 13, 2009 Share Posted March 13, 2009 Why would you want to encrypt picture files?What makes 90% of the internets content ? OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
aphesia Posted March 13, 2009 Author Share Posted March 13, 2009 hmm sry kafu dont rly know what to do with it Link to comment Share on other sites More sharing options...
Developers Jos Posted March 13, 2009 Developers Share Posted March 13, 2009 hmm sry kafu dont rly know what to do with it Hey, please explain what you exactly want to do and why?Why do you want to encrypt a program file? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
aphesia Posted March 13, 2009 Author Share Posted March 13, 2009 okay so first of all this script should be part of a password manager and also replaces my current crypt-programm (bloatware from my asus notebook.. asus data security manager which is pretty shitty ). So what i want to do: Right click on file/folder and in context menu u get encrypt/decrypt . when u click it it wants you to enter a pw and if its correct it will encrypt/decrypt. (also for encrypting it must be the right password so no one can jsut come to my laptop and encrypt some files with some random pw .. so i will set a password somewhere). When doing that on a folder not the whole folder will be crypted.. only the files + sub-folder and their files. so u still can open the folder but cant open any file. (should be easier) why ANY files? well i when i didn´t had a crypting programm or password manager i just renamed the passwords.txt into passwords.jpg and 90% of ppl who tried to open this file didn´t knew how :DD besides that i also want to crypt pictures or videos or any other data which i dont want to be opened from someone else. propably i dont need .exe files but i thought it would be possible with ANY file. if not the most important files would be txt,ini,jpg so one main feature is to crypt files so no one can open it 2nd feature: i will make a little pw manager (i´m trying too ;P) and want to also use this future there. So the pw.txt will be crypted/encrypted with the same way. Propably i would add to my pw manager also a feature that it will rename the .txt to .jpg and then encrypts Link to comment Share on other sites More sharing options...
Robjong Posted March 13, 2009 Share Posted March 13, 2009 (edited) Hey,For the file encryption part take a look a the AES UDF by Ward.and to make sure your own password is kept safe you can store the MD5 of your password and then make a MD5 of the password the user enteres and compare those, for this you can use the MD5 UDF also by Ward. Edited March 13, 2009 by Robjong Link to comment Share on other sites More sharing options...
aphesia Posted March 13, 2009 Author Share Posted March 13, 2009 not sure how i need to use that but i will check it tomorrow.. thx 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