New topic: File/App Lock by changing creator code, file type, extension
<http://forums.realsoftware.com/viewtopic.php?t=26362> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message imaginateware.com Post subject: File/App Lock by changing creator code, file type, extensionPosted: Sat Feb 07, 2009 2:21 pm Joined: Sat Jan 03, 2009 10:33 am Posts: 28 Hey I got a idea for a computer program, but I have some questions before I start How can I have files and applications drag and drop into my application's window and then change the file or applications type and creator + extension (in order to lock the file/app) from being able to access the file and when the specific file/app is clicked on after the file type/creator + extension has been changed when the user clicks on the file require a password to open it and then after the password is checked and valid change the filetype, creator back to the original filetype+creator and the exension back to app or if it's a document back to the exension it was originally I basically want to write a program that would lock a file or application and then require a password to unlock it a locked application or file would not be able to open like a normal file or appliication it would require a password first. _________________ Brian Heibert ImaginateWare Software http://www.imaginateware.com http://www.brianheibert.net [email protected] [email protected] Top tomis Post subject: Re: File/App Lock by changing creator code, file type, extensionPosted: Sat Feb 07, 2009 5:48 pm Joined: Thu Jul 27, 2006 6:31 pm Posts: 1340 Location: Monterey, CA Changing the file type/creator won't stop anyone from opening a file. It will just break the automatic file-application association. If the user drops a file onto an application while holding command-option the system will send that application an open event for the given file regardless of file type. If you wanted to prevent the user opening a file in the manner you describe, what you'd really have to do is encode the file's data in some way, including the file type/creator in your encoding so it could be restored on decode. And in order for this to be secure you'll want to look at encryption schemes. There are a couple plugins to help you there. Though personally, if I wanted some data to be secured, I'd just use an encrypted disk image from the start so the raw data is never written to my disk. _________________ ImagePlay Effects Library (40+ image effects in one open source module. No plugins, no dependencies, no restrictions.) http://imageplay.sourceforge.net/ Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
