download
raw
1.4 kB
import { SHA3 } from "./sha3.js";
export function sha3_224(data) {
const hash = new SHA3_224();
hash.update(data);
return hash.digest();
}
export function sha3_256(data) {
const hash = new SHA3_256();
hash.update(data);
return hash.digest();
}
export function sha3_384(data) {
const hash = new SHA3_384();
hash.update(data);
return hash.digest();
}
export function sha3_512(data) {
const hash = new SHA3_512();
hash.update(data);
return hash.digest();
}
export class SHA3_224 {
blockSize = 144;
size = 28;
sha3 = new SHA3(this.blockSize, this.size);
update(data) {
this.sha3.absorb(data);
}
digest() {
return this.sha3.squeeze();
}
}
export class SHA3_256 {
blockSize = 136;
size = 32;
sha3 = new SHA3(this.blockSize, this.size);
update(data) {
this.sha3.absorb(data);
}
digest() {
return this.sha3.squeeze();
}
}
export class SHA3_384 {
blockSize = 104;
size = 48;
sha3 = new SHA3(this.blockSize, this.size);
update(data) {
this.sha3.absorb(data);
}
digest() {
return this.sha3.squeeze();
}
}
export class SHA3_512 {
blockSize = 72;
size = 64;
sha3 = new SHA3(this.blockSize, this.size);
update(data) {
this.sha3.absorb(data);
}
digest() {
return this.sha3.squeeze();
}
}

Xet Storage Details

Size:
1.4 kB
·
Xet hash:
ad3c18eadb48cb8d79bc8370aea669fd3ceaecab815c38d85cdb565d1e59363e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.