Registry / crypto / rsa-export

rsa-export

JSON →
library0.3.3rscratesunverified

Export keys generated by the rsa crate into PKCS#1 or PKCS#8 format.

# Cargo.toml [dependencies] rsa-export = "0.3.3"
INSTALL
IMPORT
SIG · RSA-EXPORT
R
rsa-export
cryptorustv0.3.3
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.

export_pkcs8
use rsa_export::export_pkcs8;

Generates an RSA private key and exports it in PKCS#8 DER format.

use rsa_export::export_pkcs8; use rsa::RsaPrivateKey; let mut rng = rand::thread_rng(); let private_key = RsaPrivateKey::new(&mut rng, 2048).expect("failed to generate key"); let pkcs8_der = export_pkcs8(&private_key).expect("failed to export"); println!("Exported PKCS#8 key: {:?}", pkcs8_der);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
Resources
rsa-export — cargo add rsa-export · libregistry