INNER CODE UNIT · JavaScript
outputDataEncrypt
jofpin/temcrypt · temcrypt.js:347
const outputDataEncrypt = this.core.PREFIX_STRING + outputMainKey;
const hashedData = this.helper().sha256(outputDataEncrypt);
const encryptedSize = this.byteLength(outputDataEncrypt);
const encryptedSizeBytes = this.helper().calculateBytes(encryptedSize);
const percentageIncrease = ((encryptedSize - exposedSize) / exposedSize) * 100;
return {
hash: hashedData,
mainKey: mainKey,
timeKey: this.baseTime().hours + ":" + this.baseTime().minutes,
dataString: outputDataEncrypt,
dataSizes: {
exposed: exposedSizeBytes,
encrypted: encryptedSizeBytes,
percentageIncrease: percentageIncrease.toFixed(2) + "%"
},
extraBytes: extraBytesData
}