INNER CODE UNIT · JavaScript

timeKey

jofpin/temcrypt · temcrypt.js:253

            let timeKey = key + this.baseTime().hours + this.baseTime().minutes;
            let composition = [prefix, timeKey, saltIncrease];
            let noRepeat = new Set();
            let randomPosition = composition.filter(elem => {
                if (noRepeat.has(elem)) {
                    return false;
                } else {
                    noRepeat.add(elem);
                    return true;
                }
            });
            return this.shuffle(randomPosition);
        },
        hexGenerator: function(length) {
            const charactersHex = "0123456789abcdef";
            let value = "";
            for (let i = 0; i < length; i++) {
                value += charactersHex.charAt(Math.floor(Math.random() * charactersHex.length));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…