Registry / crypto / youmark-pkcs8

youmark-pkcs8

JSON →
library0.0.0-20240726163527-a2c0da244d78gogounverified

Package pkcs8 implements functions to parse and convert private keys in PKCS#8 format, as defined in RFC5208 and RFC5958.

go get github.com/youmark/pkcs8
INSTALL
IMPORT
SIG · YOUMARK-PKCS8
Y
youmark-pkcs8
cryptogov0.0.0-20240726163527-a2c0da244d78
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.

pkcs8
github.com/youmark/pkcs8

Parse a PKCS#8 private key from PEM data.

package main import ( "crypto/x509" "encoding/pem" "fmt" "log" "github.com/youmark/pkcs8" ) func main() { pemBlock := []byte(`-----BEGIN PRIVATE KEY----- MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg... -----END PRIVATE KEY-----`) block, _ := pem.Decode(pemBlock) key, err := pkcs8.ParsePKCS8PrivateKey(block.Bytes) if err != nil { log.Fatal(err) } fmt.Printf("Parsed key: %T\n", key) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20240726163527-a2c0da244d78latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
30
Resources
youmark-pkcs8 — go get youmark-pkcs8 · libregistry