
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Buffer implementation for AssemblyScript
~ npm install buffer-as
import { Buffer } from 'buffer-as'
const buf = Buffer.from('Hello World!')
console.log(buf.toString('utf8'))
// 'Hello World!'
Buffer.from(data: T, encoding: string | null) Create a new buffer from multiple data types.
Buffer.write(str: string): Buffer Write string data to the buffer.
Buffer.slice(start: i32, end: i32): Buffer Slices the buffer into a chunk.
Buffer.alloc(size: i32): Buffer Allocate an empty buffer with a defined size.
Buffer.allocUnsafe(size: i32): Buffer Allocate an empty buffer with a defined size. Unsafe.
Buffer.allocUnsafeSlow(size: i32): Buffer Allocate an empty buffer with a defined size. Unsafe.
Buffer.isBuffer(obj: T): boolean Check if a object is of type buffer.
Buffer.toString(encoding: string | null): string Convert a buffer to a string.
Buffer.toJSON(): JSONbuffer Convert a buffer to a JSON object.
Buffer.equals(otherBuffer: Buffer): boolean Check if this buffer equals another buffer.
Buffer.isEncoding(encoding: string): boolean Check if the provided encoding is valid.
Buffer.concat(list: Buffer[]): Buffer Join a list of buffers into a single buffer.
Buffer.byteLength(string: string, encoding?: string): i32 Get the byte length of a string.
FAQs
NodeJS Buffer for AssemblyScript
We found that buffer-as 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.