Introduction:-
I have explained here how to encrypt and decrypt a string value.
Description:-
It is became mandatory for all developer to store their password in encrypted
because of security reason.And it is the best practice for a developer.If
someone wants to store something secretly ,then we should go for
it .To store a password in encrypt manner ,it will create headache
for hackers to find your password easily.
If
you will store some string value in encrypted way,then it is quite obvious for
an developer to decrypt that string for further use in that application.For an
example if some store the encrypted password in database,But
while they want to retrieve their password it won't come the exact one
rather encrypted one.Hence we will decrypt that string in that
scenario.