bitty-tui 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -442,6 +442,7 @@ export class Client {
442
442
  this.refreshToken = identityReq.refresh_token;
443
443
  this.tokenExpiration = Date.now() + identityReq.expires_in * 1000;
444
444
  const { userKey, privateKey } = mcbw.decodeUserKeys(identityReq.Key, identityReq.PrivateKey || "", keys);
445
+ keys.masterKey = undefined; // Clear master key from memory
445
446
  this.keys = {
446
447
  ...keys,
447
448
  userKey,
package/dist/hooks/bw.js CHANGED
@@ -15,8 +15,6 @@ export async function loadConfig() {
15
15
  }
16
16
  if (config.keys && config.refreshToken) {
17
17
  const keys = {};
18
- if (config.keys.masterKey)
19
- keys.masterKey = Uint8Array.from(config.keys.masterKey);
20
18
  if (config.keys.masterPasswordHash)
21
19
  keys.masterPasswordHash = config.keys.masterPasswordHash;
22
20
  if (config.keys.privateKey)
@@ -50,8 +48,6 @@ export async function loadConfig() {
50
48
  }
51
49
  export async function saveConfig(config) {
52
50
  const keys = {};
53
- if (config.keys.masterKey)
54
- keys.masterKey = Array.from(config.keys.masterKey);
55
51
  if (config.keys.masterPasswordHash)
56
52
  keys.masterPasswordHash = config.keys.masterPasswordHash;
57
53
  if (config.keys.privateKey)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitty-tui",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "license": "MIT",
5
5
  "repository": "https://github.com/mceck/bitty",
6
6
  "keywords": [
package/readme.md CHANGED
@@ -3,7 +3,13 @@
3
3
  ## Install
4
4
 
5
5
  ```bash
6
- $ npm install -g bitty-tui
6
+ npm install -g bitty-tui
7
+ ```
8
+
9
+ Run with:
10
+
11
+ ```bash
12
+ bitty
7
13
  ```
8
14
 
9
15
  ## Description
@@ -20,13 +26,13 @@ If you check "Remember me" during login, your vault encryption keys will be stor
20
26
  ## TODO
21
27
 
22
28
  - Collections support
23
- - Implement Fido, Duo MFA support
29
+ - Test Fido, Duo MFA support
24
30
  - Handle more fields editing
25
31
  - Handle creating different cipher types
26
32
 
27
33
  ## Acknowledgments
28
-
29
- - [Bitwarden](https://github.com/bitwarden)
34
+ - [Bitwarden whitepaper](https://bitwarden.com/help/bitwarden-security-white-paper)
35
+ - [Bitwarden github](https://github.com/bitwarden)
30
36
  - [BitwardenDecrypt](https://github.com/GurpreetKang/BitwardenDecrypt)
31
37
 
32
38
  This project is not associated with [Bitwarden](https://github.com/bitwarden) or [Bitwarden, Inc.](https://bitwarden.com/)