3.4.0 • Published 2 years ago

@proca/crypto v3.4.0

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
2 years ago

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) - load KeyStore from a file.

  • loadKeyStoreFromString(content : string) - load KeyStore from a string

  • storeKeyStoreToFile(keystore : KeyStore, filename? : string) - store KeyStore into file

  • decryptPersonalInfo(pii : PersonalInfo | undefined, keyStore : KeyStore) : any - decrypt PersonalInfo record (see @proca/queue definitions) using a provided KeyStore

3.4.0

2 years ago

3.3.4

3 years ago

3.3.3

3 years ago

3.3.2

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.1.1

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago