June 17, 2023, 3:53 p.m. | Code Craft-Fun with Javascript

DEV Community dev.to


Before going further I would suggest you first check out my article on the prototypes. Yes, we will be using the prototype concept to add our custom encryption functions to the local storage API. Let's see how we can achieve this.


The localStorage function is available globally on the browser's window object. And if you have ever noticed, this function has the type Storage.



If you check the function definition you will notice that this Storage is an interface. …

api article beginners browser check concept data encrypt encryption frontend function functions javascript local localstorage object prototype storage webdev yes

Senior Security Officer

@ eSimplicity | Remote

Senior - Automated Cyber Attack Engineer

@ Deloitte | Madrid, España

Public Key Infrastructure (PKI) Senior Engineer

@ Sherwin-Williams | Cleveland, OH, United States

Consultant, Technology Consulting, Cyber Security - Privacy (Senior) (Multiple Positions) (1502793)

@ EY | Chicago, IL, US, 60606

Principal Associate, CSOC Analyst

@ Capital One | McLean, VA

Real Estate Portfolio & Corporate Security Lead

@ Lilium | Munich