@awsw/encrypt

0.5.2 • Public • Published

@awsw/encrypt

Enables awsw projects to encrypt local plaintext to upload sensitive information to a public website. The content is encrypted with a randomly generated IV prepended to the text and using crypto's AES-CBC mode.

! IMPORTANT ! I did a fair share of research around encryption but am not an expert. To my knowledge there are no issues with how this is implemented, but use at your own risk!

How to use

Ensure you have @awsw/core installed and add "encrypt" to the Modules as well as a base64 encoded AES key to EncryptionKey to your aws-website-config.yaml .

For every folder (recursively) where you want the content to be encrypted, add an .awsw-encrypt file to the root of the folder. During the build step, every file in that folder (recursively) will now be repla

Readme

Keywords

none

Package Sidebar

Install

npm i @awsw/encrypt

Weekly Downloads

2

Version

0.5.2

License

ISC

Unpacked Size

2.3 kB

Total Files

3

Last publish

Collaborators

  • mdressler