{"id":18596977,"url":"https://github.com/focusaurus/nom_pem","last_synced_at":"2025-05-16T13:33:08.204Z","repository":{"id":141310010,"uuid":"113577091","full_name":"focusaurus/nom_pem","owner":"focusaurus","description":"Rust Crate implements PEM data encoding and parsing, which originated in Privacy Enhanced Mail","archived":false,"fork":false,"pushed_at":"2018-05-24T21:24:09.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T18:02:56.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/focusaurus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-08T13:26:20.000Z","updated_at":"2017-12-08T13:26:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8ff6ac8-f243-4538-84b4-468a369dec35","html_url":"https://github.com/focusaurus/nom_pem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fnom_pem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fnom_pem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fnom_pem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fnom_pem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/focusaurus","download_url":"https://codeload.github.com/focusaurus/nom_pem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254538472,"owners_count":22087869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T01:26:31.380Z","updated_at":"2025-05-16T13:33:08.181Z","avatar_url":"https://github.com/focusaurus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":" # nom_pem\n \n [![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n [![Build Status](https://travis-ci.org/bpressure/nom_pem.svg?branch=master)](https://travis-ci.org/bpressure/nom_pem)\n [![Crates.io Version](https://img.shields.io/crates/v/nom_pem.svg)](https://crates.io/crates/nom_pem)\n \n Rust Crate implements PEM data encoding and parsing, which originated in Privacy Enhanced Mail.\n See RFC 1421 for details.\n It supports PEM messages with headers as well as without.\n\n Based on nom as a parser combinator (https://github.com/Geal/nom).\n\n\n```\n  let b = b\"-----BEGIN PRIVACY-ENHANCED MESSAGE-----\nProc-Type: 4,ENCRYPTED\nContent-Domain: RFC822\nDEK-Info: DES-CBC,F8143EDE5960C597\nOriginator-ID-Symmetric: linn@zendia.enet.dec.com,,\nRecipient-ID-Symmetric: linn@zendia.enet.dec.com,ptf-kmc,3\nKey-Info: DES-ECB,RSA-MD2,9FD3AAD2F2691B9A,\n B70665BB9BF7CBCDA60195DB94F727D3\nRecipient-ID-Symmetric: pem-dev@tis.com,ptf-kmc,4\nKey-Info: DES-ECB,RSA-MD2,161A3F75DC82EF26,\n E2EF532C65CBCFF79F83A2658132DB47\n\nLLrHB0eJzyhP+/fSStdW8okeEnv47jxe7SJ/iN72ohNcUk2jHEUSoH1nvNSIWL9M\n8tEjmF/zxB+bATMtPjCUWbz8Lr9wloXIkjHUlBLpvXR0UrUzYbkNpk0agV2IzUpk\nJ6UiRRGcDSvzrsoK+oNvqu6z7Xs5Xfz5rDqUcMlK1Z6720dcBWGGsDLpTpSCnpot\ndXd/H5LMDWnonNvPCwQUHt==\n-----END PRIVACY-ENHANCED MESSAGE-----\";\n\nlet block = nom_pem::decode_block(b).unwrap();\n\nassert_eq!(block.block_type, \"PRIVACY-ENHANCED MESSAGE\");\nassert_eq!(block.data.len(), 160);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocusaurus%2Fnom_pem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffocusaurus%2Fnom_pem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocusaurus%2Fnom_pem/lists"}