12 Commits

Author SHA1 Message Date
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
58b27f351b
Cleanup remaining MD5, SHA1 and Hash unit use. 2024-09-26 11:39:48 +02:00
Martijn Laan
ea6f7b69c8
Use SHA256 instead of SHA1 for the password hashing. 2024-09-01 19:46:24 +02:00
Martijn Laan
a1274f5d75
Finish branch. The examples still have iscrypt.dll/.zip downloads but keeping those for now. 2024-09-01 19:03:22 +02:00
Martijn Laan
db877306fa
Implement the base nonce. 2024-09-01 18:46:43 +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
e1e7b59b65
Redo "Improve sign flags handling for merged entries."
This reverts commit ed1f132e8c69d5dc9511c7be817948f00648f53d.
2024-08-24 08:10:29 +02:00
Martijn Laan
ed1f132e8c
Improve sign flags handling for merged entries. 2024-08-23 08:38:14 +02:00
Martijn Laan
58bee3c7ce
Cleanup. 2024-08-08 20:24:46 +02:00
Martijn Laan
b2df5696ba
Split off more. Compiler.SetupCompiler has the Git history of what was Compiler.Compile.pas (and Compile.pas before that). 2024-08-08 20:14:26 +02:00
Martijn Laan
c8170bf58e
Start work on splitting large Compiler.Compile.pas unit into smaller ones. 2024-08-08 14:23:59 +02:00