Commit graph

662 commits

Author SHA1 Message Date
Carson McManus
140b2abda6
Merge pull request #94 from dyc3/secrets
Implement a special type to hold 2fa secret that gets zeroed on drop
2021-08-25 00:23:28 -04:00
Carson McManus
bf0b6d1572 replace secrets crate with secrecy 2021-08-25 00:19:17 -04:00
Carson McManus
ce2285d617 when encrypting, use 128 byte buffers instead of 256 byte buffers because Pkcs7 padding 2021-08-24 23:24:17 -04:00
Carson McManus
4e09b98d07 add TwoFactorSecret type, which zeros out memory when deallocated 2021-08-24 22:56:25 -04:00
Carson McManus
73c3f54051
Merge pull request #92 from dyc3/encryption
encryption
2021-08-20 11:13:52 -04:00
Carson McManus
49a264ba3f move incorrect passkey error 2021-08-20 10:49:43 -04:00
Carson McManus
fdc606fb0e add a unit test for encryption 2021-08-20 09:37:55 -04:00
Carson McManus
8722e9f294 move around fixtures 2021-08-19 17:45:20 -04:00
Carson McManus
71edb794c1 move encryption key maker into LegacySdaCompatible impl 2021-08-19 17:15:27 -04:00
Carson McManus
e611e31ad3 move encryption stuff into new module 2021-08-19 16:55:57 -04:00
Carson McManus
58a13d8bab update comment 2021-08-19 14:29:59 -04:00
Carson McManus
aa1fa6a318 fix not being able to encrypt file contents if it was longer than a certain amount of bytes 2021-08-19 14:15:38 -04:00
Carson McManus
49aea80080 decryption makes slightly more sense now 2021-08-19 09:55:52 -04:00
Carson McManus
d3cdc309ed prompt user for encryption passkey if not provided 2021-08-17 19:20:57 -04:00
Carson McManus
e1f86d3750 fix passkey arg 2021-08-17 19:04:02 -04:00
Carson McManus
f1158f9a3d implement decrypt 2021-08-17 18:54:16 -04:00
Carson McManus
531e69ea88 prompt for passkey if not provided 2021-08-17 18:24:26 -04:00
Carson McManus
1b1f12f423 implement saving encrypted maFiles 2021-08-17 18:24:26 -04:00
Carson McManus
02d8cade2a correctly implement SDA compatible decryption 2021-08-17 18:24:26 -04:00
Carson McManus
8f6a1d8345 add encryption key tests to verify compatibility 2021-08-17 18:24:26 -04:00
Carson McManus
7d7dd6701e add broken encrypted maFiles test 2021-08-17 18:24:26 -04:00
Carson McManus
edb2663baf add test fixtures for encrypted maFiles 2021-08-17 18:24:26 -04:00
Carson McManus
c98ff1c914 allow load_accounts to take encryption passkey 2021-08-17 18:24:26 -04:00
Carson McManus
dc18f3a7ab
Merge pull request #93 from dyc3/shell-completions
add shell completion generation
2021-08-17 18:16:24 -04:00
Carson McManus
4788b330ed add shell completion generation 2021-08-17 18:13:05 -04:00
Carson McManus
18ffc3a4fa
Merge pull request #91 from dyc3/manifest-unit-tests3
move fixtures to the right spot
2021-08-14 22:55:49 -04:00
Carson McManus
cee428b708 move fixtures to the right spot 2021-08-14 22:51:03 -04:00
Carson McManus
ac3811ddbd
Merge pull request #90 from dyc3/manifest-unit-tests2
fixes SDA manifest parsing compatibility
2021-08-14 20:57:23 -04:00
Carson McManus
1b213841e9 fixes SDA manifest parsing compatibility 2021-08-14 20:54:25 -04:00
Carson McManus
2eee5721d9
Merge pull request #89 from dyc3/manifest-unit-tests
add some unit tests for saving and loading the manifest
2021-08-14 13:49:26 -04:00
Carson McManus
5da5d32976 add some unit tests for saving and loading the manifest 2021-08-14 13:46:09 -04:00
Carson McManus
f668004305
Merge pull request #88 from dyc3/confirmation-details
Parse confirmation descriptions
2021-08-14 12:33:41 -04:00
Carson McManus
1825acdbb3 add test for account recovery confirmation 2021-08-14 12:29:39 -04:00
Carson McManus
2fa4be52d9 parse descriptions for confirmations 2021-08-14 12:16:40 -04:00
Carson McManus
7f7fedf59c
Merge pull request #87 from dyc3/tui-reorganization
Reorganization of tui helpers and reduce repeated code
2021-08-14 11:30:13 -04:00
Carson McManus
1258ef6e97 handle unused results 2021-08-14 11:25:53 -04:00
Carson McManus
0bc5ca7016 combine do_login and do_login_raw 2021-08-14 11:24:15 -04:00
Carson McManus
ca86b44640 add prompt_char helper function 2021-08-14 11:10:21 -04:00
Carson McManus
f38f9b6e52 move input prompting code into tui module 2021-08-14 10:01:25 -04:00
Carson McManus
d594da3b86
Merge pull request #86 from dyc3/account-import
Add the ability to import existing accounts
2021-08-14 09:22:50 -04:00
Carson McManus
5689431f8c add import subcommand 2021-08-13 19:04:03 -04:00
Carson McManus
0aabe95375
Merge pull request #85 from dyc3/default-paths
better maFiles path handling
2021-08-12 18:59:02 -04:00
Carson McManus
f5ac96f722 cargo fmt 2021-08-12 18:54:38 -04:00
Carson McManus
0af027b27e fix default maFiles path from args handling 2021-08-12 18:36:03 -04:00
Carson McManus
a5f9f7671b better logic for determining where the user's maFiles are located 2021-08-12 18:06:18 -04:00
Carson McManus
c9d9d194b2
Merge pull request #83 from dyc3/conflicting-args
make --all and --username conflict with each other
2021-08-11 20:01:47 -04:00
Carson McManus
d460fa8b12 make --all and --username conflict with each other 2021-08-11 19:58:18 -04:00
Carson McManus
47be84aaca
Merge pull request #81 from dyc3/remove-authenticator
add account removal, closes #10
2021-08-11 19:50:08 -04:00
Carson McManus
357d04f34b add account removal, closes #10 2021-08-11 19:39:29 -04:00
Carson McManus
4e208f1840
Merge pull request #80 from dyc3/ci-combine
combine CI workflows
2021-08-10 22:52:20 -04:00