Skip to content

Commit 2ed002e

Browse files
authored
Argon2 + encryption changes (#395)
* add argon2-browser dependency * wrapper argon2-browser * argon2 for new accounts and imports * forgot an await * migrate * fix performance issue * update argon2 and types * - remove the need for encryption where it wasn't needed - Optimize adding & deleting (using state instead of reloading and checking the hash again) - Use 16 KiB memory + Argon2di * don't animate password prompt * hash mem 16 KiB => 8 KiB 11 entries takes about 500ms with 16KiB, 8 KiB takes about 300ms * fix password change not working empty backup with no password fix * no cookie again. developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Session_cookies * migrate to key based system * add hash * fix bug * entry hash -> uuid * password hash check + warning * add key to backup * update argon2-browser up the hasing memory to 16 * remove argon.hash * Sandbox argon2 in Chrome Chrome does not allow webassembly without adding 'unsafe-eval' to CSP. * - show pass if key in storage - change password * import * fix #412 (#413) * fix #412 * review fixes * Fix #414 (#419) * remove validity checks in getDecryptedSecret * add length check to manual add account page * Revert "remove validity checks in getDecryptedSecret" This reverts commit a396de3. * Update webpack.config.js * fix type error
1 parent b9511ba commit 2ed002e

29 files changed

+990
-576
lines changed

manifest-chrome.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,20 @@
2727
"oauth2": {
2828
"client_id": "292457304165-u8ve4j79gag5o231n5u2pdtdrbfdo1hh.apps.googleusercontent.com",
2929
"scopes": [
30-
"https://www.googleapis.com/auth/drive.file"
30+
"https://www.googleapis.com/auth/drive.file"
3131
]
3232
},
3333
"background": {
3434
"scripts": [
3535
"dist/background.js"
3636
],
37-
"persistent": false
37+
"persistent": true
38+
},
39+
"sandbox": {
40+
"pages": [
41+
"view/argon.html"
42+
],
43+
"content_security_policy": "sandbox allow-scripts; script-src 'self' 'unsafe-eval';"
3844
},
3945
"permissions": [
4046
"activeTab",

0 commit comments

Comments
 (0)