Scan your whole stack
From OX Research Newsroom
Are you using pyssh2age?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.0
pyssh2age was last scanned on 29 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.0 LATEST | 29 Nov 2026 | No rules fired |
Findings for v1.0.0. 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.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Convert SSH Ed25519 keys to age keys, e.g. for sops or sops-nix.
A single-file pure-Python port of ssh-to-age that produces the same keys.
Python 3.9+, using only the standard library and ssh-keygen to decrypt passphrase-protected keys.
The conversion is the standard Ed25519 → X25519 mapping
(explained here):
the age secret is sha512(seed)[:32], and the age public key is the Montgomery
u-coordinate of the Ed25519 public point, u = (1 + y) / (1 - y).
$ pipx install pyssh2age # or: uv tool install pyssh2age
This installs the pyssh2age command and ssh-to-age alias.
Or copy src/pyssh2age.py anywhere and run it.
$ cat ~/.ssh/id_ed25519.pub | pyssh2age
age17044m9u...
$ pyssh2age -i ~/.ssh/id_ed25519.pub
age17044m9u...
$ ssh-keyscan host1 host2 | pyssh2age # or authorized_keys, known_hosts
skipped key: got ssh-rsa key type, but only ed25519 keys are supported
age1hjm3au...
age1v8zjc4...
$ pyssh2age --private-key -i ~/.ssh/id_ed25519 -o key.txt # see Security below
Decrypting passphrase-protected private keys needs a Unix-like system; everything else also works on Windows.
For a passphrase-protected key you're prompted on the terminal. In scripts,
use --stdinpass or SSH_TO_AGE_PASSPHRASE:
$ systemd-ask-password | pyssh2age --private-key --stdinpass -i ~/.ssh/id_ed25519 -o key.txt
The age identity file (-o) is created with mode 0600, atomically replacing
any existing file. As in the Go version, options work with one or two dashes.
import pyssh2age
pyssh2age.ssh_public_key_to_age("ssh-ed25519 AAAA... me@host") # "age1..."
pyssh2age.ssh_public_keys_to_age(open("authorized_keys").read()) # ["age1...", ...]
key = open("id_ed25519").read()
try:
identity = pyssh2age.ssh_private_key_to_age(key) # "AGE-SECRET-KEY-1..."
except pyssh2age.PassphraseRequired:
identity = pyssh2age.ssh_private_key_to_age(key, passphrase="...")
Failures raise ConvertError; non-Ed25519 keys raise its subclass
UnsupportedKeyType. Lower-level helpers: ed25519_public_to_x25519,
ed25519_seed_to_x25519, x25519_public, age_recipient, age_identity.
id_ed25519 file you
derived it from can't be recovered, but it is the Ed25519 signing scalar:
whoever has it can sign as the SSH key and log in wherever that key is authorized.pyssh2age --private-key ... | age -p -o key.txt.age.The tests need ssh-keygen and openssl, and also check results with age
if it's installed:
$ python3 tests/test_pyssh2age.py
$ GO_SSH_TO_AGE=/path/to/ssh-to-age python3 tests/test_pyssh2age.py # also compare with the Go version
MIT. Based on ssh-to-age by Jörg Thalheim.
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.