{"id":624,"date":"2017-03-18T16:45:43","date_gmt":"2017-03-18T16:45:43","guid":{"rendered":"https:\/\/visworlditsolution.wordpress.com\/?p=624"},"modified":"2017-03-18T16:45:43","modified_gmt":"2017-03-18T16:45:43","slug":"how-to-write-encrypt-text-content-in-redhat-linux-server-part-1","status":"publish","type":"post","link":"https:\/\/linux.thingsomething.com\/index.php\/2017\/03\/18\/how-to-write-encrypt-text-content-in-redhat-linux-server-part-1\/","title":{"rendered":"how to write encrypt text content  in RedHat Linux server part -1"},"content":{"rendered":"<p>hello guys today we will learn how to write encrypt text. actually encrypt matter is provide security our data .if we will write encrypt content then anybody con&#8217;t read our data or content . Linux Server in have many encrypted method here we will discuss some method \u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-626\" src=\"https:\/\/visworlditsolution.files.wordpress.com\/2017\/03\/encrypted-data1.jpg?w=300\" alt=\"encrypt text\" width=\"555\" height=\"270\" \/><\/p>\n<p><span style=\"color:#ff0000;\"><strong>Step 1 here i encrypt some numeric digit for eg. 7297868765<\/strong><\/span><\/p>\n<pre><strong><span style=\"color:#008000;\">[root@localhost exp]# echo \"7297868765\" |tr '0-9' '9876543210' &gt;e.txt<\/span> <span style=\"color:#ff0000;\">(Note- here i encrypt 7297869765 numeric and<\/span>\n<span style=\"color:#ff0000;\"> this digit is  encrypt matter in put in e.txt file)<\/span><\/strong><\/pre>\n<p>if we want look e.txt file then we look encrypt numeric content<\/p>\n<pre><span style=\"color:#008000;\"><strong>[root@localhost exp]# cat e.txt<\/strong><\/span>\n<span style=\"color:#0000ff;\">2702131234  <\/span><\/pre>\n<p>now we want to receive original data then we fire below commands<\/p>\n<pre><span style=\"color:#008000;\"><strong>[root@localhost exp]# echo \"27021311234\" |tr '0-9' '9876543210' &gt;f.txt <span style=\"color:#ff0000;\">(Note- Here we will put encrypt file content)<\/span>\n[root@localhost exp]# cat f.txt <\/strong><\/span>\n<span style=\"color:#0000ff;\">72978688765<\/span><\/pre>\n<p><strong><span style=\"color:#ff0000;\">Step 3 now we will encrypt text matter below commands<\/span><\/strong><\/p>\n<pre><span style=\"color:#008000;\"><strong>[root@localhost exp]# echo \"hello this is file content encrypt Demo \"|tr 'a-zA-Z' 'nza-mN-ZA-M' &gt;a.txt\n[root@localhost exp]# ls<\/strong><\/span>\n<span style=\"color:#0000ff;\">a.txt\n<\/span><strong><span style=\"color:#008000;\">[root@localhost exp]# cat a.txt<\/span><\/strong>\n<span style=\"color:#0000ff;\">fcjjm RfgQ gQ dgjc amlRnlR claPWNR Bckm<\/span>\n<strong><span style=\"color:#008000;\">[root@localhost exp]# echo \"fcjjm rfgQ gQ dgjc amlRn1R claPWNR Bckm \"|tr 'a-zA-Z' 'nza-mN-ZA-M' &gt;b.txt <\/span><\/strong><span style=\"color:#008000;\"><span style=\"color:#ff0000;\">(Note- Here we will put encrypt file content)<\/span><\/span><strong><span style=\"color:#008000;\">\n[root@localhost exp]# ls\na.txt  b.txt<\/span>\n<span style=\"color:#008000;\">[root@localhost exp]# cat b.txt<\/span><\/strong>\n<span style=\"color:#0000ff;\">hello this is file content encrypt demo<\/span>\n<\/pre>\n<p><span style=\"color:#ff0000;\"><strong>4 Here we will learn how to encrypt numeric and text<\/strong><\/span><\/p>\n<pre><strong><span style=\"color:#008000;\">[root@localhost exp]# echo \"Hello my name is vishnu my mobile is 7297868765\"|tr 'a-zA-Z0-9' 'n-za-mN-ZA-M9876543210' &gt;a.txt\n[root@localhost exp]# ls<\/span><\/strong>\n<span style=\"color:#0000ff;\">a.txt<\/span>\n<strong><span style=\"color:#008000;\">[root@localhost exp]#cat a.txt<\/span><\/strong>\n<span style=\"color:#0000ff;\">Uryyb zl anzr vf ivfuah zl zbovyr vf 2702131234\n<\/span><span style=\"color:#ff0000;\">(Note-if we want decrypt contant .then we will put encrypt code )<\/span>\n<span style=\"color:#008000;\"><strong>[root@localhost exp]# echo \"Uryyb zl anzr vf ivfuah zl zbovyr vf 2702131234\"|tr 'a-zA-Z0-9' 'n-za-mN-ZA-M9876543210' &gt;b.txt\n[root@localhost exp]# ls<\/strong><\/span>\n<span style=\"color:#0000ff;\">a.txt b.txt<\/span>\n<strong><span style=\"color:#008000;\">[root@localhost exp]# cat b.txt<\/span><\/strong>\n<span style=\"color:#0000ff;\">Hello my name is vishnu my mobile is 7297868765<\/span><\/pre>\n<p>if you have any problem in this process please comment here i will solve your problem otherwise like share and follow my website<\/p>\n<p>Thank you<\/p>\n<p>by Vishnu Sharma<\/p>\n","protected":false},"excerpt":{"rendered":"<p>hello guys today we will learn how to write encrypt text. actually encrypt matter is provide security our data .if we will write encrypt content &hellip; <span class=\"ml-btn\"><a href=\"https:\/\/linux.thingsomething.com\/index.php\/2017\/03\/18\/how-to-write-encrypt-text-content-in-redhat-linux-server-part-1\/\" class=\"more-link\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[8,13],"tags":[119,121,122],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-linux-rhel5","category-security","tag-how-to-encrypt-file","tag-how-to-encrypt-numeric","tag-how-to-encrypt-text"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts\/624"}],"collection":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/comments?post=624"}],"version-history":[{"count":0,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts\/624\/revisions"}],"wp:attachment":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/media?parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/categories?post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/tags?post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}