-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove unneccessary dependencies, migrate types to a separa…
…te folder and update changelog
- Loading branch information
1 parent
a270387
commit ba08073
Showing
12 changed files
with
66 additions
and
550 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# CHANGELOG | ||
|
||
## 1.0.0 (Mar 2, 2023) | ||
## 1.0.3 (Mar 2, 2023) | ||
|
||
- Bug fixes and testing | ||
- Initial public release |
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
export type EncryptionAlgorithm = 'aes-128-cbc' | 'aes-192-cbc' | 'aes-256-cbc'; | ||
// TODO: Support the CCM and GCM algorithms | ||
// | 'aes-128-ccm' | ||
// | 'aes-192-ccm' | ||
// | 'aes-256-ccm' | ||
// | 'aes-128-gcm' | ||
// | 'aes-192-gcm' | ||
// | 'aes-256-gcm'; | ||
|
||
export interface EncryptionOptions { | ||
/** | ||
* key - a 16-bit, 24-bit, or 32-bit raw string used by the algorithms. The 16-bit string is used on algorithms that include 128. The 24-bit string is used on algorithms that include 192. The 32-bit string is used on algorithms that include 256 | ||
*/ | ||
key: string; | ||
/** | ||
* iv - a 16-bit raw string initialization vector | ||
* Initialization vectors should be unpredictable and unique; ideally, they will be cryptographically random | ||
* @link https://en.wikipedia.org/wiki/Initialization_vector | ||
*/ | ||
iv: string; | ||
/** | ||
* algorithm - The cypher algorithm to be used to encrypt the payload | ||
*/ | ||
algorithm: EncryptionAlgorithm; | ||
} | ||
|
||
export interface DecryptedResult { | ||
[key: string]: unknown; | ||
} | ||
|
||
export interface EncryptedResult { | ||
data: string; | ||
} | ||
|
||
export interface EncryptedData { | ||
data?: string; | ||
} |
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.