Skip to content

Instantly share code, notes, and snippets.

View Pelumiii1's full-sized avatar

Oluwapelumi Adesokan Pelumiii1

View GitHub Profile
@Pelumiii1
Pelumiii1 / App.tsx
Last active February 3, 2025 11:03
Data Encryption and Decryption
import React, { useState } from "react";
import { Button, StyleSheet, Text, TextInput, View } from "react-native";
import { encrypt, decrypt } from "./EncryptionUtils";
const App = () => {
const [plainText, setPlainText] = useState<string>("");
const [secretKey, setSecretKey] = useState<string>("");
const [encryptedText, setEncryptedText] = useState<string>("");
const [decryptedText, setDecryptedText] = useState<string>("");