@proca/crypto
v3.4.0
Published
Decrypt personal information in Proca action
Downloads
35
Readme
Proca SDK: encryption helpers
Proca server pushes actions to AMQP service in format defined in @proca/queue
package.
The action or event data can contain Personal Identifiable Information (PII) in encrypted form.
This package provides helpers to decrypt the NaCL encrypted payload.
TypeScript types
KeyStore
- Contains NaCL key pairs used to decrypt PII.
Functions
loadKeyStoreFromFile(filename : string)
- loadKeyStore
from a file.loadKeyStoreFromString(content : string)
- loadKeyStore
from a stringstoreKeyStoreToFile(keystore : KeyStore, filename? : string)
- storeKeyStore
into filedecryptPersonalInfo(pii : PersonalInfo | undefined, keyStore : KeyStore) : any
- decryptPersonalInfo
record (see @proca/queue definitions) using a providedKeyStore