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’t read our data or content . Linux Server in have many encrypted method here we will discuss some method
Step 1 here i encrypt some numeric digit for eg. 7297868765
[root@localhost exp]# echo "7297868765" |tr '0-9' '9876543210' >e.txt (Note- here i encrypt 7297869765 numeric and this digit is encrypt matter in put in e.txt file)
if we want look e.txt file then we look encrypt numeric content
[root@localhost exp]# cat e.txt 2702131234
now we want to receive original data then we fire below commands
[root@localhost exp]# echo "27021311234" |tr '0-9' '9876543210' >f.txt (Note- Here we will put encrypt file content) [root@localhost exp]# cat f.txt 72978688765
Step 3 now we will encrypt text matter below commands
[root@localhost exp]# echo "hello this is file content encrypt Demo "|tr 'a-zA-Z' 'nza-mN-ZA-M' >a.txt [root@localhost exp]# ls a.txt [root@localhost exp]# cat a.txt fcjjm RfgQ gQ dgjc amlRnlR claPWNR Bckm [root@localhost exp]# echo "fcjjm rfgQ gQ dgjc amlRn1R claPWNR Bckm "|tr 'a-zA-Z' 'nza-mN-ZA-M' >b.txt (Note- Here we will put encrypt file content) [root@localhost exp]# ls a.txt b.txt [root@localhost exp]# cat b.txt hello this is file content encrypt demo
4 Here we will learn how to encrypt numeric and text
[root@localhost exp]# echo "Hello my name is vishnu my mobile is 7297868765"|tr 'a-zA-Z0-9' 'n-za-mN-ZA-M9876543210' >a.txt [root@localhost exp]# ls a.txt [root@localhost exp]#cat a.txt Uryyb zl anzr vf ivfuah zl zbovyr vf 2702131234 (Note-if we want decrypt contant .then we will put encrypt code ) [root@localhost exp]# echo "Uryyb zl anzr vf ivfuah zl zbovyr vf 2702131234"|tr 'a-zA-Z0-9' 'n-za-mN-ZA-M9876543210' >b.txt [root@localhost exp]# ls a.txt b.txt [root@localhost exp]# cat b.txt Hello my name is vishnu my mobile is 7297868765
if you have any problem in this process please comment here i will solve your problem otherwise like share and follow my website
Thank you
by Vishnu Sharma
Advertisements