mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-30 03:51:53 +02:00
10 lines
206 B
JavaScript
10 lines
206 B
JavaScript
/* MAIN */
|
|
const Unit = {
|
|
/* API */
|
|
dec2hex: (dec) => {
|
|
const hex = Math.round(dec).toString(16);
|
|
return hex.length > 1 ? hex : `0${hex}`;
|
|
}
|
|
};
|
|
/* EXPORT */
|
|
export default Unit;
|