
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
base62-node
Advanced tools
base62 encode/decode library
$ npm install base62-node
$ bower install base62
var Base62 = require('base62-node');
<script src="base62.min.js"></script>
var base62 = new Base62;
base62.encode(39134); // "abc"
base62.decode('abc'); // 39134
var base62 = new Base62('09AZaz');
base62.encode(39134); // "ABC"
base62.decode('ABC'); // 39134
tableKeyStr
string - base62 convert table keytableKeyStr
can set values below.
if not parameter, value is "09azAZ".
if parameter is not string types, throws TypeError.
if unknown tableKey, throws Error.
new Base62; // use "09azAZ" table
new Base62('09azAZ'); // use "09azAZ" table
new Base62('09AZaz'); // use "09AZaz" table
new Base62(12345678); // throws TypeError
new Base62('AZaz09'); // throws Error
str
string - base62 stringconvert to decimal number from base62 string.
if parameter is not string types, throws TypeError.
if unsupported string format, throws Error.
string format should be match for regexp of ^-?[\da-zA-Z]+$
.
// "09azAZ" table
base62.decode('Z'); // 61
base62.decode('10'); // 62
base62.decode('-10'); // -62
base62.decode(12345); // throws TypeError
base62.decode('!@='); // throws Error
num
number - number valueconvert to base62 string from decimal number.
if parameter is not number types, throws TypeError.
if not a finite number(NaN, Infinity, -Infinity), throws Error.
// "09azAZ" table
base62.encode(61); // "Z"
base62.encode(62); // "10"
base62.encode(-62); // "-10"
base62.encode('1'); // throws TypeError
base62.encode(NaN); // throws Error
$ npm install
$ npm test
The MIT License. Please see LICENSE file.
FAQs
base62 encode/decode library
The npm package base62-node receives a total of 1 weekly downloads. As such, base62-node popularity was classified as not popular.
We found that base62-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.