mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 11:32:30 -06:00
13 lines
317 B
JavaScript
13 lines
317 B
JavaScript
/* IMPORT */
|
|
import _ from './utils/index.js';
|
|
/* MAIN */
|
|
const DEC2HEX = {};
|
|
for (let i = 0; i <= 255; i++)
|
|
DEC2HEX[i] = _.unit.dec2hex(i); // Populating dynamically, striking a balance between code size and performance
|
|
const TYPE = {
|
|
ALL: 0,
|
|
RGB: 1,
|
|
HSL: 2
|
|
};
|
|
/* EXPORT */
|
|
export { DEC2HEX, TYPE };
|