Sujet : Re: HMAC cipher and a TRNG...
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : sci.cryptDate : 05. Jul 2024, 21:50:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v69map$3e2id$2@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 7/5/2024 1:45 PM, Chris M. Thomasson wrote:
[...]
... http://fractallife247.com/test/hmac_cipher/ver_0_0_0_1?ct_hmac_cipher=7d1be135...
I cut off the link above for brevity. Here is a screenshot of what you should get on your end such you click on the link:
https://i.ibb.co/4R2NXLM/image.pngHere is my critical code, gui aside for a moment...:
https://fractallife247.com/test/hmac_cipher/ver_0_0_0_1/ct_main.jsNotice the following function:
________________________
function ct_rand_bytes(n) {
var output = new Array();
for (var i = 0; i < n; ++i) {
var byte = Math.floor(Math.random() * 255);
output.push(byte);
}
return output;
}
________________________
Okay, Math.random() needs to be a TRNG, damn it!!!!!!!!!!!
;^o
[...]