This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 134
Add Vault class #222
Draft
danroc
wants to merge
34
commits into
main
Choose a base branch
from
feat/vault-refactor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add Vault class #222
Changes from 27 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
ca3b0b7
feat: add `Vault` class
danroc 31759e8
chore: add `uuid` dependency
danroc c79f1eb
chore: add `Vault` to `index.ts`
danroc d433362
chore: upgrade jest version
danroc 34731eb
chore: bump dependencies
danroc 8bb1690
refactor: simplify `Vault` API
danroc 65892b0
chore: fix linting warning
danroc df1eafc
test: add unit test to `deriveWrappingKey` function
danroc b192f1c
test: add unit tests
danroc edf6272
feat: add method to verify password
danroc 8d9add9
chore: add base64 functions and small code refactors
danroc 3957c05
refactor: move `ensureNotNull()` to getter methods
danroc 25e899e
chore: remove TODOs
danroc 4f032c6
test: add more negative tests
danroc 55b749a
chore: add a few comments
danroc 242302e
feat: add `rekey` and `changePassword` methods
danroc 8902205
feat: add methods to serialize and deserialize a vault
danroc 18e2921
refactor: factorize encode/decode state methods
danroc f5b01be
fix: prevent a vault from being initialized twice
danroc 7ef0c7e
chore: add constructor documentation
danroc 80ce672
refactor: make `init` private and replace it by unlock
danroc 66533ec
chore: add vault format version
danroc 97eb09c
chore: import crypto module (wip)
danroc 71d886b
chore: don't test with node 14
danroc 4fe9585
chore: increase tests timeout value
danroc 4c9c358
feat: validate vault state
danroc 81e11c6
feat: check other vault properties
danroc cdb73d3
fix: don't use deprecated functions (sonarlint)
danroc aa65f31
chore: stop error message from polluting console
danroc 9d4a0db
chore: rename `uuidv4` variable to `uuid`
danroc 410917f
chore: remove unnecessary linter-ignore comment
danroc 51fcc41
chore: simplify function
danroc e3bf15b
fix: make wrapping key not extractable
danroc 896adb0
chore: rename master key handler variable name
danroc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this break node14? In either case: Separate change.