How to Encrypt & Decrypt Files from the Command Line with OpenSSL on Mac and Linux

Have you ever wondered how to quickly encrypt a file from the command line? Generally, encryption allows you to hide the original contents of a file. With OpenSSL, you can encrypt and decrypt files very easily. In this article, we’ll use des3 encryption, which in simple terms means a complex encryption algorithm is applied three times to each data block, making it difficult to crack through brute force methods.