MacTricksAndTips Daily Email, Today: Encrypt Any File With A Password & More | |
| Encrypt Any File With A Password Posted: 30 May 2013 11:14 AM PDT Hey, There are not very many ways to encrypt files on your Mac. However, if a neat Terminal solution you can encrypt any file with a password. We are going to use a Terminal command called OpenSSL. Its a program designed to create the https bits of website through secure certificates. We are going to use it encrypt files instead. There is one caveat to this command in that it will only encrypt text files. However, this is only a minor problem we can work around. Encrypting Files With A PasswordTo encrypt a file, in this case a text file, open Terminal located in your applications utilities folder. Navigate the to directory where the file is located. Since you start in the user drive typing We can now encrypt our file for these type the following (it helps to set up the command within textedit first):
Openssl is the command we are using, followed by the encrypt modifier. In this instance we are going to use a secure aes 256 bit encryption. The next half of the command, -in textfile.txt, is the text file we are going to convert. It will then be converted using the, -out encrypted.txt, option to a second text file. The password option is supplied with -pass pass:mactricksandtips. You can change the mactricksandtips bit to anything you want. Once you have hit enter, the file will be encrypted. If you don’t know the password it will be hard to decrypt. Decrypting Files With A PasswordTo decrypt the file you run the same command but in reverse.
This is in decryption mode and will decrypt the file using the password. If you get the password wrong it will be be able to decrypt the file. Encrypting Zip, Images And Other FilesIf you want to encrypt other file such as images, or zip files you can use this trick. However you have to put in one step before you go into Terminal. The openssl command will only accept text files. Within Finder change the file extension from .zip, .png, .jpg to .txt. Finder will convert the file to a text one (it doesn’t really do anything). Now when you use the command it will run and encrypt the file. You just have to remember when you decrypt the file to change it back to the original format. ConclusionThis command is a little tricky to use. You have to remember both the encryption method used and the password, however once you have that you can encrypt anything. Want to catch up on the latest Tweets about this site, follow me on Twitter. |
| You are subscribed to email updates from Mac Tricks And Tips To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 20 West Kinzie, Chicago IL USA 60610 | |

No comments:
Post a Comment
Gimme your 2 cents!