DEV Community

skptricks
skptricks

Posted on

React Native Password Encryption and Decryption using Base64 Method

Source : React Native Password Encryption and Decryption using Base64 Method

This tutorial explains how encrypt and decrypt password text using Base64 method in react native application. Encoding and decoding a string in Base64 with JavaScript can be quite handy. It's in no way meant to be a secure encryption method, but it is extremely useful for writing obfuscated strings to either a document (your webpage) or a cookie file without needing to worry about quotes or characters breaking things. A most famous password encryption technique is known as Base64 encryption which is used by hundreds of websites and mobile applications to store their password.In this example we are going to encrypt and decrypt TextInput field value using Base64 library in react native.

Click here to read more

Top comments (1)

Collapse
 
swarupkm profile image
Swarup Kumar Mahapatra

Encryption IS NOT equal to Encoding.
Hence simply masking the password with Base-64 is one of the worst ideas.
It just gives false sense of security.. Hence title of article is truly misleading.
Specially if junior developers are looking into it. They need to have a Secure First mind set.