{"id":6766,"date":"2014-04-12T08:12:49","date_gmt":"2014-04-12T08:12:49","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=6766"},"modified":"2014-04-12T08:12:49","modified_gmt":"2014-04-12T08:12:49","slug":"encrypting-file-linux","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/encrypting-file-linux\/","title":{"rendered":"Encrypting a file In LINUX"},"content":{"rendered":"<p>Sending and receiving files in a plane text is vulnerable to attacks. So we can eaisly encrypt a file using this method in linux<\/p>\n<p><strong>For Encryption&#8211;<\/strong><\/p>\n<p>#openssl enc -aes-256-cbc -e -in &lt;plain_text_file&gt; \\out &lt;encrypted_file_name&gt;<\/p>\n<p><strong>For Decryption&#8212;<\/strong><\/p>\n<p>#openssl enc -aes-256-cbc -d -in &lt;encrypted_file_name&gt; \\-out &lt;plain_text_file&gt;<\/p>\n<p>File will ask for the password (passphrase) so that unauthorised acces to this file can be prevented.<\/p>\n<p>&nbsp;<\/p>\n<p>Enjoy secure sharing\u00a0 \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sending and receiving files in a plane text is vulnerable to attacks. So we can eaisly encrypt a file using this method in linux For Encryption&#8211; #openssl enc -aes-256-cbc -e -in &lt;plain_text_file&gt; \\out &lt;encrypted_file_name&gt; For Decryption&#8212; #openssl enc -aes-256-cbc -d -in &lt;encrypted_file_name&gt; \\-out &lt;plain_text_file&gt; File will ask for the password (passphrase) so that unauthorised acces <a href=\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[951,950],"class_list":["post-6766","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-secure-file-sharing-in-linux","tag-security-in-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Encrypting a file In LINUX - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Encrypting a file In LINUX - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Sending and receiving files in a plane text is vulnerable to attacks. So we can eaisly encrypt a file using this method in linux For Encryption&#8211; #openssl enc -aes-256-cbc -e -in &lt;plain_text_file&gt; out &lt;encrypted_file_name&gt; For Decryption&#8212; #openssl enc -aes-256-cbc -d -in &lt;encrypted_file_name&gt; -out &lt;plain_text_file&gt; File will ask for the password (passphrase) so that unauthorised acces [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-12T08:12:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rajat Gangwar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rajat Gangwar\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/\"},\"author\":{\"name\":\"Rajat Gangwar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/7bd28faef446f5a3725036e2c51d68ac\"},\"headline\":\"Encrypting a file In LINUX\",\"datePublished\":\"2014-04-12T08:12:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/\"},\"wordCount\":88,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"Secure File sharing in linux\",\"security in linux\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/\",\"url\":\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/\",\"name\":\"Encrypting a file In LINUX - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2014-04-12T08:12:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/encrypting-file-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Encrypting a file In LINUX\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/7bd28faef446f5a3725036e2c51d68ac\",\"name\":\"Rajat Gangwar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cd655f20ce4894ae84f7bf9bd334a1c6673455788fd82e5cb8d8dca2e1bc007c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cd655f20ce4894ae84f7bf9bd334a1c6673455788fd82e5cb8d8dca2e1bc007c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Rajat Gangwar\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/rajat\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Encrypting a file In LINUX - Webkul Blog","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:\/\/webkul.com\/blog\/encrypting-file-linux\/","og_locale":"en_US","og_type":"article","og_title":"Encrypting a file In LINUX - Webkul Blog","og_description":"Sending and receiving files in a plane text is vulnerable to attacks. So we can eaisly encrypt a file using this method in linux For Encryption&#8211; #openssl enc -aes-256-cbc -e -in &lt;plain_text_file&gt; out &lt;encrypted_file_name&gt; For Decryption&#8212; #openssl enc -aes-256-cbc -d -in &lt;encrypted_file_name&gt; -out &lt;plain_text_file&gt; File will ask for the password (passphrase) so that unauthorised acces [...]","og_url":"https:\/\/webkul.com\/blog\/encrypting-file-linux\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2014-04-12T08:12:49+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Rajat Gangwar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Rajat Gangwar"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/encrypting-file-linux\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/encrypting-file-linux\/"},"author":{"name":"Rajat Gangwar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/7bd28faef446f5a3725036e2c51d68ac"},"headline":"Encrypting a file In LINUX","datePublished":"2014-04-12T08:12:49+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/encrypting-file-linux\/"},"wordCount":88,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["Secure File sharing in linux","security in linux"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/encrypting-file-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/encrypting-file-linux\/","url":"https:\/\/webkul.com\/blog\/encrypting-file-linux\/","name":"Encrypting a file In LINUX - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2014-04-12T08:12:49+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/encrypting-file-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/encrypting-file-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/encrypting-file-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Encrypting a file In LINUX"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/7bd28faef446f5a3725036e2c51d68ac","name":"Rajat Gangwar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cd655f20ce4894ae84f7bf9bd334a1c6673455788fd82e5cb8d8dca2e1bc007c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cd655f20ce4894ae84f7bf9bd334a1c6673455788fd82e5cb8d8dca2e1bc007c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Rajat Gangwar"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/rajat\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/6766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=6766"}],"version-history":[{"count":1,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/6766\/revisions"}],"predecessor-version":[{"id":6767,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/6766\/revisions\/6767"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=6766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=6766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=6766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}