Registry / crypto / rsa-der

rsa-der

JSON →
library0.3.0rscratesunverified

Crate to encode and decode public RSA keys using DER.

# Cargo.toml [dependencies] rsa-der = "0.3.0"
INSTALL
IMPORT
SIG · RSA-DER
R
rsa-der
cryptorustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PublicKey
use rsa_der::PublicKey;

Decodes a DER-encoded RSA public key.

use rsa_der::PublicKey; fn main() { let der_bytes = b"\x30\x0d\x02\x01\x01\x02\x02\x03\x01\x00\x01"; let key = PublicKey::from_der(der_bytes).unwrap(); println!("Modulus: {:?}", key.modulus); }
Debug
Known issues
gotchaOnly supports public keys, not private keys
fix
Use a different crate like rsa for private key handling.
affects: >=0.3.0
Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
Resources
rsa-der — cargo add rsa-der · libregistry