
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
base45 is a base45 encoder/decoder that is fully compatible draft-faltstrom-base45-02.
When using QR or Aztec codes a different encoding scheme is needed than the already established base 64, base 32 and base 16 encoding
Via npm:
npm install base45
const base45 = require('base45');
base45.encode(input)This function takes a byte string (the input parameter) and encodes it according to base45. The input data must be in the form of a string containing only characters in the range from U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF or a binary buffer in the same range.
const encodedData = base45.encode(input);
To base45-encode a utf8 encoded string.
const base45 = require('base45');
const text = 'foo © bar 𝌆 baz';
const encoded = base45.encode(text);
console.log(encoded);
// → 'X.C82EIROA44GECH74C-J1/GUJCW2'
base45.decode(input)This function takes a base45-encoded string (the input parameter) and decodes it and returns a buffer. (BREAKING: THIS WAS PREVIOUSLY A STRING IN 2.X version)
const decodedData = base45.decode(encodedData);
const text = base45.decode(encoded).toString('utf-8');
console.log(text);
// → 'foo © bar 𝌆 baz'
| (https://twitter.com/landgren "Follow @landgren on Twitter") |
base45 is available under the MIT license.
FAQs
base45 encoder/decoder in javascript
We found that base45 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.