Skip to main content

How to encrypt and decrypt a password in UNIX shell script?

Unix Shell Script
[srv049 ~]$ cd /informatica
[srv049 informatica]$ echo  'YourPassw0rd@123#' | base64 > passcodefile.crdn
[srv049 informatica]$ echo $(echo Your encryted passwrod is : ) $(head -1 passcodefile.crdn)
Your encryted passwrod is : WW91clBhc3N3MHJkQDEyMyMK
[srv049 informatica]$ cd /informatica
[srv049 informatica]$ PASSWORD_VARIABLE=$(echo $(head -1 passcodefile.crdn) | base64 --decode)
[srv049 informatica]$ echo '                         'Original password : $PASSWORD_VARIABLE
                         Original password : YourPassw0rd@123#
[srv049 informatica]$

Comments

Popular posts from this blog

How To Remove Background using Photoshop 7? KAISE Transparent Background...

What is a Blog? What is a Blogger? What is Blogging?

You have heard the term “ blog ” and you want to know what  blogs  are all about. Well you've come to the right place. Basically a blog is a regularly updated website or web page, typically one run by an individual or small group, which is written in an informal or conversational style. On Wiki: A blog (contraction of weblog) is a website with frequent, periodic posts creating an ongoing narrative. They are maintained by both groups and individuals, the latter being the most common. Blogs can focus on a wide variety of topics, ranging from the political to personal experiences. So let us see,  What is a Blog? What is a Blogger? What is Blogging? ·        A blog originally came from the word “weblog” or a “web log”. ·        You can think of it as an online journal or diary, although blogs are used for much more now, like online journalism. ·  ...

My Adsense Account Suspended For 30 Suspenstion Day 1

My Goal to share my experience so that you can learn and avoid your adsense account suspension.if you are new or old YouTuber.