Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
A simple base64 encoder/decoder that works with HTML5 and Node. Supports strict mode and URL safe encoding/decoding.
A simple base64 encoder/decoder that works with modern browsers, legacy browsers, and Node. It supports strict mode, URL safe encoding/decoding, and optional line lengths.
npm install base64it --save
##Encoding
base64it supports the following encoding standards:
To encode, just call base64.encode.
var base64 = require("base64it");
var encoded = base64.encode("Hello world")
console.log(encoded); // SGVsbG8gd29ybGQ=
To convert it back, just call base64.decode.
var decoded = base64.decode(encoded)
console.log(decoded); // Hello world
You can also see Base64It in action, live, on the Interwebs! Check out this fiddle. http://jsfiddle.net/donavon/aqv815ec/
Encodes a string into a base64 encoded string.
Where:
unencoded is the string you want to encode.
options is a set of encoding Options as follows (optional)
This will decode a base64 encoded string. Padding characters are optional.
This is simply sugar around base64.encode
with the urlSafe
options seto to false
.
This is simply sugar around base64.encode
with the urlSafe
options seto to true
.
This is the same as base64.decode
.
This is the same as base64.decode
.
For use under MIT license
FAQs
A simple base64 encoder/decoder that works with HTML5 and Node. Supports strict mode and URL safe encoding/decoding.
We found that base64it 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.