? Using a SHA value as a key for encryption (Page 1) ● SmileBASIC Source Forums

Sign In

*Usernames are case-sensitive
Forgot my password

Using a SHA value as a key for encryption

  • #1 ✎ 28 DevinF06 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Using a file's own SHA value is great for a encryption key because:
    1. It is a very good password
    2. You can check if the password is incorrect
    3. The data/checking is two sided
    LINPUT "Password:"; PASSWORD$ 'Insert decryption stuff here IF SHA(PRG$) != PASSWORD$ THEN PRINT "Incorrect password!" ENDIF Here's a relatively simple image about the idea:
  • #2 ✎ 1013 Yttria Use a checksum to verify integrity after decryption. Posted