INNER CODE UNIT · JavaScript

encryptedGhostLayer

jofpin/temcrypt · temcrypt.js:322

            const encryptedGhostLayer = this.helper(string).enc256(shadowToken + this.baseTime().minutes);
            const exposedSize = this.byteLength(string);
            const exposedSizeBytes = this.helper().calculateBytes(exposedSize);

            let extraBytesData = "";

            if (extraBytes) {
                if (typeof extraBytes !== "number") {
                    throw new Error("extraBytes must be a number");
                }
                extraBytesData = this.hexGenerator(extraBytes);
            }

            const data = {
                tem: {
                    string: encryptedGhostLayer,
                    token: shadowToken,
                    extraBytes: extraBytesData,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…