Create a Password Protected ZIP
Have you ever wanted to put very basic security (a passphrase) on a file? You can do so if you ZIP the file -- let's have a look at how you can password-protect a ZIP file!
Creating a password protected ZIP file from command line is done so via the following command:
# zip -er {file name to be created} {source directory or file}
zip -er my-generated-file.zip source-file.rtf
When someone tries to unzip the file, they'll be prompted for a password.
Don't be under any illusion that a password makes the ZIP file too secure: ZIP files don't self-destruct after a given number of attempts so a brute force effort to crack the password would ultimately be effective. If you do, however, want a very basic level of security for the contents of a file, this command will get you there.
![An Interview with Eric Meyer]()
Your early CSS books were instrumental in pushing my love for front end technologies. What was it about CSS that you fell in love with and drove you to write about it?
At first blush, it was the simplicity of it as compared to the table-and-spacer...
![Serving Fonts from CDN]()
For maximum performance, we all know we must put our assets on CDN (another domain). Along with those assets are custom web fonts. Unfortunately custom web fonts via CDN (or any cross-domain font request) don't work in Firefox or Internet Explorer (correctly so, by spec) though...
![Create Custom Events in MooTools 1.2]()
Javascript has a number of native events like "mouseover," "mouseout", "click", and so on. What if you want to create your own events though? Creating events using MooTools is as easy as it gets.
The MooTools JavaScript
What's great about creating custom events in MooTools is...
![Upload Photos to Flickr with PHP]()
I have a bit of an obsession with uploading photos to different services thanks to Instagram. Instagram's iPhone app allows me to take photos and quickly filter them; once photo tinkering is complete, I can upload the photo to Instagram, Twitter, Facebook, and...