TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What's Inside ––Begin (RSA) Public Key–– Files?

1 点作者 lucgommans超过 1 年前

1 comment

lucgommans超过 1 年前
There are two styles of public key, both with Base64 between the boundaries:<p><pre><code> -----BEGIN RSA PUBLIC KEY----- -----END RSA PUBLIC KEY----- and -----BEGIN PUBLIC KEY----- -----END PUBLIC KEY----- </code></pre> The top answer gives a stellar explanation of internals in response to OP asking how to convert between them.<p>For the former (older) format, there is this overview in the middle of the post:<p>&gt; [This is an] PEM DER ASN.1 PKCS#1 RSA Public key<p>&gt; - PEM: synonym for base64<p>&gt; - DER: a flavor of ASN.1 encoding<p>&gt; - ASN.1: the binary encoding scheme used<p>&gt; - PKCS#1: The formal specification that dictates representing a public key as structure that consists of modulus followed by an exponent<p>&gt; - RSA public key: the public key algorithm being used<p>Trivial!<p>I really appreciated the explanation of all these terms in one place, even if I question that PEM really just means Base64 it is likely a useful simplification.