3 ms·
Given the hash, it may be possible to guess the contents of the file. A safer way: key=$(cat /dev/urandom | base64 | head -c 32) printf $key | b3sum --keye
by rainworld 6y ago
Given the hash, it may be possible to guess the contents of the file. A safer way:
key=$(cat /dev/urandom | base64 | head -c 32)
printf $key | b3sum --keyed secret.txt
echo $key
- rlpb 6y agoFor a file significantly bigger than the size of the hash, it's not possible to reverse, since there are many such files that would match the hash. See: https://en.wikipedia.org/wiki/Pigeonhole_principle https://en.wikipedia.org/wiki/Pigeonhole_principle