Linux machine encrypt and decrypt a password string

 

1)For encrypt use below command: for the password" Ranjith" 

echo Ranjith | openssl enc -aes-256-cbc -a -salt -pass pass:tecmint


[root@ranjith]# echo Ranjith | openssl enc -aes-256-cbc -a -salt -pass pass:tecmint

U2FsdGVkX1/lvI5yT7l7fPeg/thWbJN76DlM++FltEKqWUzJKGSjo


2)To decrypt the above encrypted string use:

echo <> | openssl enc -aes-256-cbc -a -d -salt -pass pass:tecmint

[root@ranjith]# echo U2FsdGVkX1/lvI5yT7l7fPeg/thWbJN76DlM++FltEKqWUzJKGSjo | openssl enc -aes-256-cbc -a -d -salt -pass pass:tecmint
Ranjith


No comments:

Post a Comment

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...