63 Commits

Author SHA1 Message Date
Martijn Laan
6910a147a5
Finishing touches. 2024-11-15 16:44:10 +01:00
Martijn Laan
23bac8824d
Be like DownloadTemporaryFile. 2024-11-09 13:32:19 +01:00
Martijn Laan
a5a8448fc2
Added [Setup] section directive EncryptionKeyDerivation. 2024-09-29 14:42:29 +02:00
Martijn Laan
f727458281
Tweak WizardForm's CheckPassword + some cleanup. 2024-09-29 13:11:57 +02:00
Martijn Laan
6876665c8a
Use PBKDF2 to get the encryption key. Chose to use 100,000 iterations and a 128-bit salt. 2024-09-27 16:24:48 +02:00
Martijn Laan
9a91001f91
Cleanup password testing: use the encryption itself (by encrypting 0 and comparing results) to test the password instead of having something separate as before.
Encryption itself is unchanged by this commit except that the key is now derived from the password only once. So it still uses SHA-256 for this.

The next step is changing this to a proper KDF, by changing the implementation of GenerateEncryptionKey and the TSetupEncryptionKey type.
2024-09-26 13:26:30 +02:00
Martijn Laan
12637b1b70
Merge branch 'sha256-cleanup' 2024-09-26 11:49:49 +02:00
Martijn Laan
ea6f7b69c8
Use SHA256 instead of SHA1 for the password hashing. 2024-09-01 19:46:24 +02:00
Martijn Laan
a4704a25cf
Missed cleanup. 2024-09-01 18:49:56 +02:00
Martijn Laan
d9d845ab62
Replace ArcFour with XChaCha20 which also removes iscrypt.dll use.
Todo:
-Use a single random base nonce for all files
-Remove/replace various iscrypt use in .iss scripts
-Delete iscrypt.dll on updates
-Update help & whatsnew & web
-Rename TSetupSalt/TSetupNonce?
2024-08-31 22:14:32 +02:00
Martijn Laan
b789d82ee1
Cleanup. (Can't do same for MB_CANCELTRYCONTINUE.) 2024-08-14 09:23:16 +02:00
Martijn Laan
c745379b5f
Split main form and main functions+vars. 2024-08-09 08:22:01 +02:00
Martijn Laan
dd603f785c
Start work on splitting main form and main functions. 2024-08-08 20:51:33 +02:00