Scan your whole stack
From OX Research Newsroom
Are you using @ohos-ports/rsa-keygen?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.6-beta.2
@ohos-ports/rsa-keygen was last scanned on 28 Nov 2026 at version 1.0.6-beta.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.6-beta.2 LATEST | 28 Nov 2026 | No rules fired |
Findings for v1.0.6-beta.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.0.6-beta.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Generates a RSA keypair using native OpenSSL library.
This code is loosely based on ursa RSA generation code.
As from node 0.11 the crypto library has publicEncrypt and privateDecrypt functions, we don't need to rely on any external libraries for public-key cryptography.
Install the library:
npm install --save rsa-keygen
var rsaKeygen = require('rsa-keygen');
var keys = rsaKeygen.generate();
var crypto = require('crypto');
var rsaKeygen = require('rsa-keygen');
var keys = rsaKeygen.generate();
var result = crypto.publicEncrypt({
key: keys.public_key
}, new Buffer('Hello world!'));
// <Crypted Buffer>
var plaintext = crypto.privateDecrypt({
key: keys.private_key
}, result);
// Hello world! Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.