UNPKG

@abdellatif.dev/cryptjs

Version:

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

14 lines (13 loc) 365 B
"use strict"; export const roundsValues = { min: 1e3, max: 99999, default: 5e3 }; export default function validateRounds(rounds) { if (rounds === void 0) return roundsValues.default; if (rounds <= roundsValues.min) return roundsValues.min; if (rounds >= roundsValues.max) rounds = roundsValues.max; return rounds; } //# sourceMappingURL=rounds.js.map