UNPKG

@abdellatif.dev/cryptjs

Version:

A JavaScript/TypeScript library that brings cryptographic functionality from Dart to the web

13 lines (12 loc) 591 B
/** * @param {import("../types.js").ShaType} algorithm either sha-256 or sha-512 * @param {string} data data to hash * @param {32 | 64} blockSize blocksize * @param {number | undefined} providedRounds provided rounds * @param {string | undefined} providedSalt provided salt * @returns {{ hashSeq:number[]; salt: string; }} returns hash sequence, salt */ export default function shaAlgorithm(algorithm: import("../types.js").ShaType, data: string, blockSize: 32 | 64, providedRounds: number | undefined, providedSalt: string | undefined): { hashSeq: number[]; salt: string; };