This is the Sepior S3 Library. This can be used on Node to handle Sepior encrypted files on Amazon S3.
Building the SDK
Make sure you have node installed (version 6 or later). Then do
First you need to initialise AWS and Sepior clients:
const AWS =const SepiorServicesClient =const SepiorServicesS3 =const awsS3Client =awsS3Clientconfigconst sepiorClient = SepiorServicesClientconst seps3 = SepiorServicesS3
Encrypting and uploading a file is done like this:
const fs =const inStream = fsseps3
You can also encrypt and upload a buffer by passing a buffer to uploadData instead of a stream.
Downloading and decrypting is very similar:
To run the tests you must first set the proper credentials in environment variables (see test/test.json) and then run:
When contributing changes remember to update the
When releasing a new version (x.x.x) do the following:
- Update the change log by creating a new section (headed [x.x.x]) containing the content of the unreleased section
- Correct the package version in
- Commit these changes with the message:
chore: Release x.x.xNotice: This commit should only contain the changes to
- Tag this commit
git tag -a x.x.x -m "Release x.x.x"
- Push commit and merge to master.
- Push tags.