Pem envelope parse

pem-envelope-parse · version 1.0.0 · Encoding & checksums · free, no key needed

Parse one RFC 7468 textual envelope into its label and lowercase hex bytes.

Use when you need to: parse one pem textual envelope · read rfc 7468 begin and end boundaries · pem armor block to lowercase hex.

Decide before calling

Read the versioned contract and the supported scope below. Reuse pem-envelope-parse@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use pem-envelope-parse@1.0.0 for parse one pem textual envelope. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "-----BEGIN EXAMPLE-----\nAA==\n-----END EXAMPLE-----\n"
}

Response:

{
  "result": {
    "label": "EXAMPLE",
    "bytes_hex": "00",
    "byte_length": 1,
    "canonical": true,
    "eol": "lf"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "pem-envelope-parse",
  "version": "1.0.0",
  "input": {
    "text": "-----BEGIN EXAMPLE-----\nAA==\n-----END EXAMPLE-----\n"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/pem-envelope-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"-----BEGIN EXAMPLE-----\nAA==\n-----END EXAMPLE-----\n"}'

The machine-readable contract is at /v1/tools/pem-envelope-parse/versions/1.0.0.

CLI

node cli.mjs run pem-envelope-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.