{"id":7,"date":"2016-11-25T01:36:56","date_gmt":"2016-11-25T01:36:56","guid":{"rendered":"http:\/\/linuxwebdevelopment.com\/?p=7"},"modified":"2021-05-23T07:50:52","modified_gmt":"2021-05-22T23:50:52","slug":"encrypt-files-openssl","status":"publish","type":"post","link":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/","title":{"rendered":"How To Encrypt Files With OpenSSL"},"content":{"rendered":"<p>Learning how to encrypt files is extremely useful in today&#8217;s world. In addition to encrypting files, you can also password protect your files with OpenSSL. By encrypting files, no one would be able to read or open your files without first decrypting them. OpenSSL allows you to use excellent encryption on your files, and if you use it correctly, even if someone does intercept some of your data or hack your computer, it might not be worth it for them to decrypt the data due to the huge amount of time and computing power required to do so. In some cases, it might take a supercomputer years to decrypt a well encrypted file, or it may even be essentially impossible due to how much time it would take to do so. Banks, corporations, and governments around the world use encryption, and it is a very good practice to do so to protect yourself and your essential data. <!--more--><\/p>\n<figure id=\"attachment_11\" aria-describedby=\"caption-attachment-11\" style=\"width: 300px\" class=\"wp-caption alignnone\"><img decoding=\"async\" class=\"wp-image-11 size-medium\" src=\"https:\/\/emwbbp8cqch.exactdn.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg?strip=all\" alt=\"cryptography_image\" width=\"300\" height=\"212\" srcset=\"https:\/\/emwbbp8cqch.exactdn.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg?strip=all 300w, https:\/\/emwbbp8cqch.exactdn.com\/wp-content\/uploads\/2016\/11\/cryptography_image.jpg?strip=all 400w, https:\/\/emwbbp8cqch.exactdn.com\/wp-content\/uploads\/2016\/11\/cryptography_image.jpg?strip=all&amp;w=80 80w, https:\/\/emwbbp8cqch.exactdn.com\/wp-content\/uploads\/2016\/11\/cryptography_image.jpg?strip=all&amp;w=160 160w, https:\/\/emwbbp8cqch.exactdn.com\/wp-content\/uploads\/2016\/11\/cryptography_image.jpg?strip=all&amp;w=240 240w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><figcaption id=\"caption-attachment-11\" class=\"wp-caption-text\">Image via <a href=\"https:\/\/pixabay.com\/en\/cryptography-encryption-privacy-1091254\/\" target=\"_blank\" rel=\"noopener noreferrer\">pixabay.com<\/a><\/figcaption><\/figure>\n<p>(Note that OpenSSL is the name of the tool but the actual command is called openssl. It is case sensitive.)<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#Installation_of_OpenSSL\" >Installation of OpenSSL<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#Linux_Users\" >Linux Users<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#Windows_and_Mac_OS_X_users\" >Windows and Mac OS X users<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#Step_1_Encrypting_your_file\" >Step 1: Encrypting your file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#Encrypting_Decrypting_files_with_OpenSSL_versions_111_and_after\" >Encrypting \/ Decrypting files with OpenSSL versions 1.1.1 and after<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#Encrypting_Decrypting_files_with_OpenSSL_versions_110_and_before\" >Encrypting \/ Decrypting files with OpenSSL versions 1.1.0 and before<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#Step_2_Decrypt_your_encrypted_file\" >Step 2: Decrypt your encrypted file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#Step_3_Check_to_make_sure_the_decrypted_file_and_your_original_file_are_the_same\" >Step 3: Check to make sure the decrypted file and your original file are the same<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Installation_of_OpenSSL\"><\/span>Installation of OpenSSL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Linux_Users\"><\/span>Linux Users<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Almost all modern Linux distros come with OpenSSL installed with them. But just in case, check to make sure it is installed. If it isn&#8217;t, you can install it in Ubuntu or Debian by doing:<\/p>\n<p><code> sudo apt-get install openssl<\/code><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Windows_and_Mac_OS_X_users\"><\/span>Windows and Mac OS X users<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>For Windows and Mac OS X users, you can download OpenSSL <a href=\"https:\/\/wiki.openssl.org\/index.php\/Binaries\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>:<\/p>\n<p>Here is how you encrypt files with OpenSSL<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step_1_Encrypting_your_file\"><\/span>Step 1: Encrypting your file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, let&#8217;s assume that your file is located in ~\/ (or choose another location of your choice). Open up a terminal and navigate to where the file is. Assuming it is in ~\/<br \/>\ntype:<\/p>\n<p><code>cd ~\/ <\/code><\/p>\n<p>First, check your version of OpenSSL. Things changed a little from version 1.1.0 to version 1.1.1, and I will give instructions on how to do this for the newer version and the older version<br \/>\nType the following command in a terminal.<\/p>\n<p><code>openssl version<\/code><br \/>\nI got the following output:<\/p>\n<pre>OpenSSL 1.1.1f 31 Mar 2020<\/pre>\n<p>Your output should look similar. That command should give you the version number and date of the<br \/>\nversion of OpenSSL that you are using.<\/p>\n<p>Next, I describe how to encrypt a file with OpenSSL for versions 1.1.1 and later, and versions 1.1.0 and before. The commands I use are similar, but there are some differences. Just find your version of OpenSSL, and read the section on your version of OpenSSL. You can ignore the other one.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Encrypting_Decrypting_files_with_OpenSSL_versions_111_and_after\"><\/span>Encrypting \/ Decrypting files with OpenSSL versions 1.1.1 and after<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let&#8217;s say that your file is called file1. And assume that you want to call the encrypted version of the file, file1_encrypted. (Adjust for what your actual file is called and what you want the output file to be called). The full command would be:<br \/>\n<code>openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in file1 -out file1_encrypted<\/code><\/p>\n<p>And to decrypt the encrypted file and get back your original unencrypted file, you can do the following:<br \/>\n<code>openssl enc -aes-256-cbc -d -md sha512 -pbkdf2 -iter 100000 -salt -in file1_encrypted -out file1<\/code><\/p>\n<p>Now I will explain what each part of the encrypt command means:<br \/>\nopenssl is the actual command.<\/p>\n<p>enc means encoding with a cipher.<\/p>\n<p>-aes-256-cbc means using the AES-256 CBC cipher-md sha512 is optional. It is the faster variant of SHA-2 functions family compared to SHA-256<br \/>\n-pbkdf2 stands for Password-Based Key Derivation Function 2, which is another way to reduce vulnerability of brute-force attacks.<\/p>\n<p>-iter some_number tells the command to use that number of iterations on the password in deriving the encryption key. Generally, the higher the value after iter, the better in terms of security, but also the longer it may take to compute.<\/p>\n<p>The purpose of -salt is to prevent precomputation attacks (dictionary attacks), such as using rainbow tables.<\/p>\n<p>After typing the encrypt command, you will be prompted to enter a password twice. Generally the longer and more complex the password, the better.<\/p>\n<p>The only difference between the encrypt and decrypt commands above, besides the names of the input and output files, is that the addition of -d for decrypt, in the decrypt command.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Encrypting_Decrypting_files_with_OpenSSL_versions_110_and_before\"><\/span>Encrypting \/ Decrypting files with OpenSSL versions 1.1.0 and before<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let&#8217;s say that your file is called file1. And assume that you want to call the encrypted version of the file, file1_encrypted. (Adjust for what your actual file is called and what you want the output file to be called). The full command would be:<\/p>\n<p><code>openssl enc -aes-256-cbc -e -in file1 -out file1_encrypted <\/code><\/p>\n<p>Now I will walk through what each part of that command means.<br \/>\nopenssl is the actual command.<br \/>\nenc means encoding with a cipher.<br \/>\n-aes-256-cbc is an option we give it.<br \/>\naes-256-cbc is a common and secure cipher. We are telling it we want to use the cipher aes-256-cbc. To learn more about ciphers go <a href=\"https:\/\/en.wikipedia.org\/wiki\/Cipher\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<p>The -e option tells openssl that you want to encrypt. The -in option means the input file you are giving openssl to encrypt. -out means the output file you want created after your input file is encrypted.<br \/>\nOnce you do the command:<\/p>\n<p>You will be asked twice to enter in a password. First it will say:<br \/>\nenter aes-256-cbc encryption password:<br \/>\nThe second time it will say:<br \/>\nVerifying &#8211; enter aes-256-cbc encryption password<\/p>\n<p>As for what you should choose as a password, the longer and more complex the password, the better. Assuming you navigated to where your file is and you entered the command as I described, you should now have an encrypted file called file1_encrypted (or whatever you chose to name it).<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step_2_Decrypt_your_encrypted_file\"><\/span>Step 2: Decrypt your encrypted file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, just to make sure you encrypted your file correctly, we want\u00a0to copy that file to \/tmp\/ (or a different folder of your choice)<br \/>\nDo:<\/p>\n<p><code>cp file1_encrypted \/tmp<\/code><\/p>\n<p>then go into \/tmp \u00a0by doing:<\/p>\n<p><code>cd \/tmp\/ <\/code><\/p>\n<p>Now we will decrypt the encrypted file<br \/>\nThe decrypting command is almost identical to the encrypting command except for a few small differences. We substitute -d (-d means decrypt) for -e and your input file is now file1_encrypted and your output file is file1. Here is the command for decrypting that file:<\/p>\n<p><code>openssl enc -aes-256-cbc -d -in file1_encrypted -out file1<\/code><\/p>\n<p>Once you type in that command, you will get a message saying:<br \/>\nenter aes-256-cbc decryption password:<br \/>\nEnter your password that you chose for encrypting the file<\/p>\n<p>If you don&#8217;t get a message that says something like bad decrypt it should have decrypted correctly.<\/p>\n<p>But, if you get a message saying &#8220;bad decrypt&#8221; followed by a longer message, you either typed in the wrong password or you made a mistake with the command.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step_3_Check_to_make_sure_the_decrypted_file_and_your_original_file_are_the_same\"><\/span>Step 3: Check to make sure the decrypted file and your original file are the same<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, you are still in \/tmp\/ (or wherever you chose to copy your encrypted file). Let&#8217;s assume you chose to have your original file in ~\/<br \/>\nCheck to make sure that the decrypted file and your original file are the same by doing<\/p>\n<p><code> diff file1 ~\/file1\/ <\/code><\/p>\n<p>I use this command all the time to encrypt my files. While I also use other security measures like using HTTPS, VPNs and Tor, I have piece of mind that even if someone intercepts my data, they won&#8217;t be able to read it. What did you think of this article? Let&#8217;s discuss this topic in the comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learning how to encrypt files is extremely useful in today&#8217;s world. In addition to encrypting files, you can also password protect your files with OpenSSL. By encrypting files, no one would be able to read or open your files without first decrypting them. OpenSSL allows you to use excellent encryption on your files, and if &hellip; <a href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How To Encrypt Files With OpenSSL&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-encryption","category-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Encrypt Files With OpenSSL<\/title>\n<meta name=\"description\" content=\"How To Encrypt Files With OpenSSL. Learn step by step how you can secure your files through password protection and encryption.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Encrypt Files With OpenSSL\" \/>\n<meta property=\"og:description\" content=\"How To Encrypt Files With OpenSSL. Learn step by step how you can secure your files through password protection and encryption.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/\" \/>\n<meta property=\"og:site_name\" content=\"linuxwebdevelopment.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxwebdevelopment\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-22T23:50:52+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg\" \/>\n<meta name=\"author\" content=\"Justin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@linuxwebdevelop\" \/>\n<meta name=\"twitter:site\" content=\"@linuxwebdevelop\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/\"},\"author\":{\"name\":\"Justin\",\"@id\":\"https:\/\/linuxwebdevelopment.com\/#\/schema\/person\/b8cc076a4fdf1caff46a39b815e33819\"},\"headline\":\"How To Encrypt Files With OpenSSL\",\"datePublished\":\"2016-11-25T01:36:56+00:00\",\"dateModified\":\"2021-05-22T23:50:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/\"},\"wordCount\":1186,\"commentCount\":2,\"image\":{\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg\",\"articleSection\":[\"Encryption\",\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/\",\"url\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/\",\"name\":\"How To Encrypt Files With OpenSSL\",\"isPartOf\":{\"@id\":\"https:\/\/linuxwebdevelopment.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg\",\"dateModified\":\"2021-05-22T23:50:52+00:00\",\"author\":{\"@id\":\"https:\/\/linuxwebdevelopment.com\/#\/schema\/person\/b8cc076a4fdf1caff46a39b815e33819\"},\"description\":\"How To Encrypt Files With OpenSSL. Learn step by step how you can secure your files through password protection and encryption.\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#primaryimage\",\"url\":\"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg\",\"contentUrl\":\"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxwebdevelopment.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Encrypt Files With OpenSSL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxwebdevelopment.com\/#website\",\"url\":\"https:\/\/linuxwebdevelopment.com\/\",\"name\":\"linuxwebdevelopment.com\",\"description\":\"Tutorials and articles about web development, system administration, Python, Wordpress, and more.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxwebdevelopment.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxwebdevelopment.com\/#\/schema\/person\/b8cc076a4fdf1caff46a39b815e33819\",\"name\":\"Justin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxwebdevelopment.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7b92f2f709dcd721453bf10ab9831ebf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7b92f2f709dcd721453bf10ab9831ebf?s=96&d=mm&r=g\",\"caption\":\"Justin\"},\"sameAs\":[\"http:\/\/linuxwebdevelopment.com\/\"],\"url\":\"https:\/\/linuxwebdevelopment.com\/author\/techzealot\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Encrypt Files With OpenSSL","description":"How To Encrypt Files With OpenSSL. Learn step by step how you can secure your files through password protection and encryption.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/","og_locale":"en_US","og_type":"article","og_title":"How To Encrypt Files With OpenSSL","og_description":"How To Encrypt Files With OpenSSL. Learn step by step how you can secure your files through password protection and encryption.","og_url":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/","og_site_name":"linuxwebdevelopment.com","article_publisher":"https:\/\/www.facebook.com\/linuxwebdevelopment","article_modified_time":"2021-05-22T23:50:52+00:00","og_image":[{"url":"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg","type":"","width":"","height":""}],"author":"Justin","twitter_card":"summary_large_image","twitter_creator":"@linuxwebdevelop","twitter_site":"@linuxwebdevelop","twitter_misc":{"Written by":false,"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#article","isPartOf":{"@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/"},"author":{"name":"Justin","@id":"https:\/\/linuxwebdevelopment.com\/#\/schema\/person\/b8cc076a4fdf1caff46a39b815e33819"},"headline":"How To Encrypt Files With OpenSSL","datePublished":"2016-11-25T01:36:56+00:00","dateModified":"2021-05-22T23:50:52+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/"},"wordCount":1186,"commentCount":2,"image":{"@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#primaryimage"},"thumbnailUrl":"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg","articleSection":["Encryption","Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/","url":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/","name":"How To Encrypt Files With OpenSSL","isPartOf":{"@id":"https:\/\/linuxwebdevelopment.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#primaryimage"},"image":{"@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#primaryimage"},"thumbnailUrl":"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg","dateModified":"2021-05-22T23:50:52+00:00","author":{"@id":"https:\/\/linuxwebdevelopment.com\/#\/schema\/person\/b8cc076a4fdf1caff46a39b815e33819"},"description":"How To Encrypt Files With OpenSSL. Learn step by step how you can secure your files through password protection and encryption.","breadcrumb":{"@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#primaryimage","url":"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg","contentUrl":"http:\/\/linuxwebdevelopment.com\/wp-content\/uploads\/2016\/11\/cryptography_image-300x212.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxwebdevelopment.com\/encrypt-files-openssl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxwebdevelopment.com\/"},{"@type":"ListItem","position":2,"name":"How To Encrypt Files With OpenSSL"}]},{"@type":"WebSite","@id":"https:\/\/linuxwebdevelopment.com\/#website","url":"https:\/\/linuxwebdevelopment.com\/","name":"linuxwebdevelopment.com","description":"Tutorials and articles about web development, system administration, Python, Wordpress, and more.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxwebdevelopment.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxwebdevelopment.com\/#\/schema\/person\/b8cc076a4fdf1caff46a39b815e33819","name":"Justin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxwebdevelopment.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7b92f2f709dcd721453bf10ab9831ebf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7b92f2f709dcd721453bf10ab9831ebf?s=96&d=mm&r=g","caption":"Justin"},"sameAs":["http:\/\/linuxwebdevelopment.com\/"],"url":"https:\/\/linuxwebdevelopment.com\/author\/techzealot\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxwebdevelopment.com\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxwebdevelopment.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxwebdevelopment.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxwebdevelopment.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxwebdevelopment.com\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":0,"href":"https:\/\/linuxwebdevelopment.com\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxwebdevelopment.com\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxwebdevelopment.com\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxwebdevelopment.com\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}