This module does not provide the following functionality:
- Programmatic issuance/revocation of document on the Ethereum blockchain
- Install Node.js
- Install the library:
npm install @govtechsg/oa-encryption
Encrypting a document
Will display something like (when you will run it, the values will be different) :
The key from the encrypted document can be extracted out and the rest of the document can be stored anywhere. To decrypt the document, the key will be needed, hence the content of your document is safe.
Decrypting a document
The content of your document is retrieved.
Dont forget to put back the key in the object passed to
decryptStringfunction, when you separate the key from the encrypted document.
- Found a bug? Have a question? Want to share an idea? Reach us on the Github repository.