- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for encodeBase64Lines (0.16 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt
*/ fun X509Certificate.certificatePem(): String { return buildString { append("-----BEGIN CERTIFICATE-----\n") encodeBase64Lines(encoded.toByteString()) append("-----END CERTIFICATE-----\n") } } internal fun StringBuilder.encodeBase64Lines(data: ByteString) { val base64 = data.base64() for (i in 0 until base64.length step 64) { append(base64, i, minOf(i + 64, base64.length)).append('\n')
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.8K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
* [rfc_7468]: https://tools.ietf.org/html/rfc7468 */ fun privateKeyPkcs8Pem(): String { return buildString { append("-----BEGIN PRIVATE KEY-----\n") encodeBase64Lines(keyPair.private.encoded.toByteString()) append("-----END PRIVATE KEY-----\n") } } /** * Returns the RSA private key encoded in [PKCS #1][rfc_8017] [PEM format][rfc_7468]. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0)