Commit graph

33 commits

Author SHA1 Message Date
Carson McManus
1ffe464ed8 cargo fmt 2021-09-06 16:57:36 -04:00
Carson McManus
e4cf29e852 don't allow setup or import for account_names already in the manifest, fixes #109 2021-09-06 16:51:44 -04:00
Carson McManus
376b7b8870 add a little bit of logging 2021-09-01 08:52:23 -04:00
Carson McManus
4e09b98d07 add TwoFactorSecret type, which zeros out memory when deallocated 2021-08-24 22:56:25 -04:00
Carson McManus
49a264ba3f move incorrect passkey error 2021-08-20 10:49:43 -04:00
Carson McManus
8722e9f294 move around fixtures 2021-08-19 17:45:20 -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
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
c98ff1c914 allow load_accounts to take encryption passkey 2021-08-17 18:24:26 -04:00
Carson McManus
cee428b708 move fixtures to the right spot 2021-08-14 22:51:03 -04:00
Carson McManus
1b213841e9 fixes SDA manifest parsing compatibility 2021-08-14 20:54:25 -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
5689431f8c add import subcommand 2021-08-13 19:04: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
357d04f34b add account removal, closes #10 2021-08-11 19:39:29 -04:00
Carson McManus
b57bc38341 add rustfmt.toml and run cargo fmt 2021-08-08 12:54:46 -04:00
Carson McManus
b5ed878659 change accounts to type Vec<Arc<Mutex<SteamGuardAccount>>> to make sure state stays in one place in memory 2021-08-01 12:34:13 -04:00
Carson McManus
afc09a35ac implement saving manifest and accounts 2021-08-01 11:20:57 -04:00
Carson McManus
d6cdbd5541 simplify manifest and account loading 2021-08-01 09:47:50 -04:00
Tilo Spannagel
f3910790bb Run "cargo fmt" 2021-08-01 12:43:18 +00:00
Carson McManus
c6d9fd0d75 seperate cli stuff from library stuff, and put it in another crate 2021-07-31 12:24:49 -04:00
Carson McManus
8ded30e09e add logging 2021-03-27 10:35:52 -04:00
Carson McManus
d7b952b40f add load_accounts 2021-03-26 14:05:54 -04:00
Carson McManus
a355cb6644 update Manifest struct 2021-03-26 13:14:59 -04:00
Carson McManus
05b944c40b add working manifest loading 2021-03-25 19:47:44 -04:00
Carson McManus
196e4ffdb8 add manifest and manifest entry types 2021-03-25 17:45:41 -04:00