#1✎ 28DevinF06Intermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthVideo GamesI like to play video games!HobbiesUsing a file's own SHA value is great for a encryption key because:
It is a very good password
You can check if the password is incorrect
The data/checking is two sided
LINPUT "Password:"; PASSWORD$
'Insert decryption stuff here
IF SHA(PRG$) != PASSWORD$ THEN
PRINT "Incorrect password!"
Here's a relatively simple image about the idea:
#2✎ 1089YolkaiHead AdminUse a checksum to verify integrity after decryption.