Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
seqid
is a sequential id generator of the simplest variety. It is inspired by TCP sequencing, such that it will just generate integer sequential ids.
The ids generated are signed integers, I.e. if the id being generated would ever exceed 2147483648 it rolls over to -2147483647 and continues.
This means you can get repeated ids if you generate enough.
The ideal use-case for this tool is generating ephemeral ids for communication or coordination or matching.
var SeqId = require("seqid")
var id = SeqId(0)
console.log(id.next()) // 1
console.log(id.next()) // 2
var id = require("seqid")([initial])
Create the id generator with optional initial
value. Otherwise it will generate a random initial value.
id.next()
Get the next value in sequence. It will always be a signed integer.
MIT
FAQs
Signed Integer sequential id generator. Similar to TCP sequencing.
We found that seqid 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.