SHA-AES tool
this tool takes a 3 inputs
and gives you back the hash of your key
(SHA256),
and the ciphertext (using AES256
CBC)
of your input encoded with a salted hash of your key!
key
salt
plaintext
salted hash output
salted hash
i use this to make entirely secure clientside puzzles!
since i know people are going to look at the code to bypass the puzzle, i can just use this to make it more secure
for example :
function checkPassword(password) {
const salt = "skibidi";
const secret = "fdcaa034...continues for miles";
if (sha256(password) == "5e884898...") { // checks if the password is correct
// decrypts secret with salted hash and runs secret code!!!
const script = aes256Decrypt(secret, sha256(password + salt));
// or just use eval()
eval(script);
};
}
the salted hash is never given out, and you cant really do much with only the password's hash and having the salt in plaintext
if someone tries to bruteforce the puzzle then props to them, they win
either because they out-brained the system or they just took a reeeeeeeeeeeeeeeeally long time
demo :