@balancer-team/rando
Version:
Generate identifiers with Rando.
32 lines (31 loc) • 951 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.pinto = exports.sesame = exports.clarion = exports.locker = exports.sorto = exports.rando = void 0;
const _1 = require("./");
const constants_1 = require("./constants");
// Rando (like a compact UUIDv4)
exports.rando = new _1.Rando();
// Sorto (like a compact UUIDv7)
exports.sorto = new _1.Rando({
sortable: true,
});
// Locker (secure key with over 256 bits of entropy)
exports.locker = new _1.Rando({
length: 46,
});
// Clarion (lowercase, easy to read, type, verbally relay)
exports.clarion = new _1.Rando({
sortable: true,
alphabet: constants_1.CLARITY,
length: 14,
});
// Sesame (secure password with over 128 bits of entropy)
exports.sesame = new _1.Rando({
alphabet: constants_1.PASSWORD,
length: 16,
});
// Pinto (for verification codes, etc)
exports.pinto = new _1.Rando({
alphabet: constants_1.NUMBERS,
length: 6,
});