🔑JWT & Auth
RSA Public Key (PEM)
The standard text format for cryptographic keys.
Explanation
PEM files use Base64 encoding with header and footer lines to identify the key type.
Examples
PEM Header
Output
-----BEGIN PUBLIC KEY-----
Code Examples
PEM File
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...
-----END PUBLIC KEY-----💡 Tips
- Keep your private keys strictly secret
- Public keys can be safely shared with anyone
- Commonly used for signing JWTs with the RS256 algorithm
⚠️ Common Pitfalls
- Accidentally sharing the private key instead of the public one