Home » encrypt you perosnal data using javascript.
computer Tips$Triks

encrypt you perosnal data using javascript.

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

For doing this we only need a web browser eg. Chrome or Firefox for doing this trick.for this we are gonig to use two java commands There’s an inbuilt encode and decode function in JavaScript that takes
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.

Now run this come in your JavaScript Console


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.

About the author

Himalaya Saxena

A web developer, Tech Enthusiast, debugger, blogger, and programmer.
I have the thirst to learn and create :)


Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Yοu are so awesome! I don't tҺink I haνe read tҺrough a single thing lіke
    that beforе. So gоod to find someone աith а fеw genuine houghts on tɦіs subject matter.

    Ɍeally.. many tɦanks for starting this up. Ƭhis website is ߋne tҺing tɦat is needeԀ on the web, someone with
    а bitt of originality!

    Аlso visit mʏ web site :: online banner advertising rates india

  • Hello there, I think your site could possibly be having web browser
    compatibility problems. When I look at your web site in Safari,
    it looks fine however, if opening in I.E., it's
    got some overlapping issues. I simply wanted to provide you with a quick heads up!
    Aside from that, fantastic site!

    Review my web page: Time Warner Cable discount [http://freegovernmentcellphone.biz/]

  • I really like what you guys are up too. This type of clever work and coverage!
    Keep up the awesome works guys I've included you guys to my blogroll.

    My web site … Time Warner Cable discount

  • I am not sure where you're getting your information, but great
    topic. I needs to spend some time learning more or understanding
    more. Thanks for magnificent information I was looking for
    this information for my mission.

    Have a look at my blog: Time Warner Cable promotion