{"id":1119,"date":"2014-08-23T06:32:59","date_gmt":"2014-08-23T06:32:59","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=1119"},"modified":"2014-08-23T06:35:03","modified_gmt":"2014-08-23T06:35:03","slug":"decrypting-enc-files-openssl-encrypted-files-in-windows","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=1119","title":{"rendered":"Decrypting enc files \/ OpenSSL encrypted files in Windows"},"content":{"rendered":"<p>Linux is easy, just decrypt the files straight from the terminal, Windows is almost as easy, it just needs the Linux touch adding!<\/p>\n<p>Enter, <a title=\"cygwin\" href=\"https:\/\/www.cygwin.com\/\" target=\"_blank\">CygWin<\/a> a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows.<\/p>\n<p>It basically gives you a Linux terminal under Windows that you can use to run Linux programs, tools and applications.<\/p>\n<p>When you download <a title=\"Cygwin\" href=\"https:\/\/www.cygwin.com\/\" target=\"_blank\">Cygwin<\/a> you first run the setup and then choose what apps \/ packages you want to include as standard, for the purpose of decrypting OpenSSL files you will want to make sure that OpenSSL is ticked during the install.<\/p>\n<p><a href=\"https:\/\/scunster.co.uk\/wp-content\/uploads\/2014\/08\/cygwinopenssl.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1121 aligncenter\" src=\"https:\/\/scunster.co.uk\/wp-content\/uploads\/2014\/08\/cygwinopenssl-300x219.jpg\" alt=\"cygwinopenssl\" width=\"273\" height=\"199\" srcset=\"https:\/\/scunster.co.uk\/wp-content\/uploads\/2014\/08\/cygwinopenssl-300x219.jpg 300w, https:\/\/scunster.co.uk\/wp-content\/uploads\/2014\/08\/cygwinopenssl.jpg 546w\" sizes=\"auto, (max-width: 273px) 100vw, 273px\" \/><\/a><\/p>\n<p>Once installed, load Cygwin and do the following to get to your windows drive letters \/ hard drives:<\/p>\n<pre>cd \/cygdrive<\/pre>\n<p>Now just use the cd command to get to the folder where you downloaded or stored the encrypted file(s)<\/p>\n<pre>cd c\/users\/yourname\/downloads<\/pre>\n<p>To decrypt the encrypted file img1.jpg.enc back to img1.jpg type the following<br \/>\nYou will be prompted for the decryption password.<\/p>\n<pre>openssl aes-256-cbc -d -a -in img1.jpg.enc -out img1.jpg<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Linux is easy, just decrypt the files straight from the terminal, Windows is almost as easy, it just needs the Linux touch adding! Enter, CygWin a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows. It basically gives you a Linux terminal under Windows that you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,171,17],"tags":[212,213,206,79,203],"class_list":["post-1119","post","type-post","status-publish","format-standard","hentry","category-linux","category-security-linux","category-windows","tag-cygwin","tag-enc-files","tag-encryption","tag-linux-2","tag-openssl"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1119"}],"version-history":[{"count":3,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1119\/revisions"}],"predecessor-version":[{"id":1123,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1119\/revisions\/1123"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}