Skip to content

Commit

Permalink
Create quantumCryptography.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 24, 2024
1 parent 4d70eac commit 74b96ad
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/quantum_resistant_cryptography/quantumCryptography.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 74b96ad

Please sign in to comment.