Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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 HTML5 and Node. Supports strict mode and URL safe encoding/decoding.
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 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 will decode a base64 encoded string. Padding characters are optional.
This will decode a URL safe base64 encoded string. Padding characters are optional.
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.
The npm package base64it receives a total of 33 weekly downloads. As such, base64it popularity was classified as not popular.
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.