diff --git a/app/quantum_resistant_cryptography/quantumCryptography.js b/app/quantum_resistant_cryptography/quantumCryptography.js new file mode 100644 index 0000000..5994a24 --- /dev/null +++ b/app/quantum_resistant_cryptography/quantumCryptography.js @@ -0,0 +1,15 @@ +import { LatticeCrypto } from 'lattice-crypto-react-native'; + +const quantumCryptography = { + encrypt: (data, publicKey) => { + const encryptedData = LatticeCrypto.encrypt(data, publicKey); + return encryptedData; + }, + + decrypt: (encryptedData, privateKey) => { + const decryptedData = LatticeCrypto.decrypt(encryptedData, privateKey); + return decryptedData; + }, +}; + +export default quantumCryptography;