When you have lot of important information on your pc that is saved in your text file and afraid of getting seen by someone else it became annoying problem.What is you can protect your data from getting seen by someone?
There are many ways to keep your credentials safe on your
computer buy using a folder locker software or something like
that, but it is a waste of time and most of the times these software
are infected with virus.So what is the Solution of it.So let see how to do that possible.
Let’s Start Encrypting/Decrypting
in an string and output the result. The function we are talking about
1. Open Your web browser i.e Chrome Or FireFox.
2. Open Your java script console By pressing below keys.
Chrome – CTRL+SHIFT+J (CMD+SHIFT+J on Mac)
Mozilla Firefox – CTRL+SHIFT+K
Now You are ready to Encrypt your personal data. The function that encodes any text is btoa(“Text you want to encode”) if you run this in your Console it will output this VGV4dCB5b3Ugd2FudCB0byBlbmNvZGU= .
Now you know that the sentence which is between the parenthesis and double quotes is encrypted .So replace it with your important credential and save it in your notepad safe from everybody.
Here is the screenshot:
Now the question arises how to get back you data again in its normal from or how to decrypt this data.So now
Time to decrypt
As btoa() encodes the Text similarly atob() decodes the encoded text.
This will output “Text you want to encode”. You use this function in the
same way but you just need to pass encoded data in the parentheses.
See example on screen shot.
If you want to increse your security then you can encrupt you data many time but u all need to decrypt same time you you should remember how may time you encrypt your data.
And you need to encrypt your data line by line other wise it will show error.That’s all
Thank you for reading this comment is all your to support us like our Facebook page and share yous.