
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.
JavaScript library of the Simplest Strong Password Generator
import {gen} from "spg";
gen("0aA", 10);
Available functions:
gen(config, length): Generate a password with the length of lengthgens(config, length): same as gen, but using a cryptographically safe random generatorcreate(safe:boolean): create an instance of SpgThe gen and gens functions' first parameter can be an SpgGenerationConfig or a string.
Whether to use the safe or unsafe random generator can be specified within the configuration can override the Spg.safe property. (and gen or gens)
SpgGenerationConfigtype SpgGenerationConfig={
characters: string; // The characters from which the password will be generated
safe?: boolean; // Whether to use a cryprographically safe random generator
}
The Spg adopts a straightforward approach for the generation, which was come up with by @RLt.
Configuration strings are made up of characters, which is parsed separately. The results are eventually added up to form a collection of characters from which the password will be generated.
for example, 0aA becomes [0-9a-zA-Z].
Available characters:
0 -> [0-9]
a -> [a-z]
A -> [A-Z]
- or _ -> -_
. -> !@#$%^&*,.;:/?+=
[ or ] -> ()[]{}<>|'"`~
Specially, there are several special characters.
c -- escape, characters after this are directly put into the output collection
s -- use the safe random generator
u -- use the unsafe random generator
FAQs
The Simplest Strong Password Generator
We found that sspg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.