>>109019030
it's really simple, i just encrypt a file or multiple files with 7zip aes256, then i open the archive in hex (using sublime text) and cut out some lines, switch some others around and add random hex to it.
this corrupts the file to the point where you can't even extract it with the correct password.
i store the modifications in an offline log file, so i can undo the changes when i want to extract the files.
it's an offline multifactor authentication.
i haven't coded anything in a decade, but i can give you a sample and the algo in pseudocode.
https://files.catbox.moe/1eqkna.zip
this is a modified aes256 file. the password is 'anon'. when you try to decrypt it, even with the correct password, it will give you a wrong password error.
//built on top of aes256, inspired by steam guard 2FA
fluid1 {
encrypt archive in aes256
open archive in hexadecimal or binary
disconnect network
modify hex {
//and store modification to logfile
move random hex chunk
add random hex line
remove random hex line
override random hex line
switch random hex lines
save file in hexadecimal encoding as fluid1_archive
} // /!\ important: keep in mind to leave file header in hexadecimal alone (the first 10 to 30 lines or so)
store logfile on offline storage
eject offline storage
connect network
}
MIT license, i guess.
also, please don't bully