DEV Community

skptricks
skptricks

Posted on

3 2

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

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay