I must generate unique hash - maybe from timestamp. hash must have max 8 chars. How to do it?
For now I have only timestamp:
var t = new Date().getTime();
Common names for the output of a hashing function are a hash or a fingerprint. WordProof adds that hash to a blockchain transaction, after which it can't be altered or removed. This hash, stored in a blockchain, is what we call a timestamp.
Click “Tools” in the top bar, then select the hashing algorithm you want to use. Next, select how you want to provide the input, you can choose “Generate”, “Generate from files”, and “Generate from selection into clipboard”.
A timestamp defined hash algorithm is proposed in the present work for secure data dissemination among vehicles. The sender vehicle sends a deformed version of the original message along with the incomplete message digest to its neighbors.
That may look funny but the following code may work well for the next couple of centuries :)
(+new Date).toString(36); // "iepii89m"
After that you can extend it with slicing method: (+new Date).toString(36).slice(-8)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With