Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js encryption two way

// if security is not a deal, you can use the native js base64

var string = "Hello folks how are you doing today?";
var encodedString = btoa(string); // Base64 encode the String
var decodedString = atob(encodedString); // Base64 decode the String
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery delete a cookie 
Javascript :: H. Nazmul Hassan 
Javascript :: filter special characters javascript 
Javascript :: express server template 
Javascript :: how to change react icon color 
Javascript :: document.queryselector vs document.getelementbyid 
Javascript :: datatable without pagination 
Javascript :: rotate matrix 90 degrees clockwise javascript 
Javascript :: turn object to json javascript 
Javascript :: check if function exists javascript 
Javascript :: calculate string value in javascript, not using eval 
Javascript :: template literal syntax not working 
Javascript :: access laravel eloquent relation in js 
Javascript :: jquery find child of parent sibling 
Javascript :: how to store array into react-native local storage 
Javascript :: material ui datepicker remove error 
Javascript :: javascript set localstorage 
Javascript :: regex select string between two strings 
Javascript :: Check if local storage is used or empty 
Javascript :: redirect react js 
Javascript :: jq get by name 
Javascript :: javascript password max length 
Javascript :: datetime to date in js 
Javascript :: select tag onchange 
Javascript :: node js get ip 
Javascript :: display am pm in javascript 
Javascript :: local storage angular 
Javascript :: express.json 
Javascript :: VM724:1 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 
Javascript :: how to add two elements in one path in react router v6 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =