
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@sentinel-one/decrypt-ssh-private
Advanced tools
A TS library that decrypts ssh keys in the browser.
Based on the nodejs node-sshpk and uses forge where possible.
Credit:
The authors of node-sshpk.
Special thanks to Ido Kotler (Sentinelone Innovative security researcher) for technical guidance and help in implementation đź’Ł.
API:
import { decryptPrivateSSHKey } from '../lib/main';
import { ErrorClassification, ResultT } from '../lib/error-classifier';
const result: ResultT<ErrorClassification, string> = decryptPrivateSSHKey(encryptedSSHKey, { passphrase: '123456' });
result
.ok((output: string) => {
console.log(output);
return result;
})
.err((err: ErrorClassification) => {
// do something with the classified error
console.log(err);
return result;
});
if (isValidSSHKey('invalid key')) {
// do sothing
};
To see it decrypts in the browser just build and serve the example:
esbuild-browser && npx http-server
FAQs
Decrypts ssh keys in the browser
The npm package @sentinel-one/decrypt-ssh-private receives a total of 240 weekly downloads. As such, @sentinel-one/decrypt-ssh-private popularity was classified as not popular.
We found that @sentinel-one/decrypt-ssh-private demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 22 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.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.