We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6abf994 + 0f6da56 commit 9b32bb0Copy full SHA for 9b32bb0
src/client/encrypt.js
@@ -79,7 +79,7 @@ module.exports = function (client, options) {
79
function mcPubKeyToPem (mcPubKeyBuffer) {
80
let pem = '-----BEGIN PUBLIC KEY-----\n'
81
let base64PubKey = mcPubKeyBuffer.toString('base64')
82
- const maxLineLength = 65
+ const maxLineLength = 64
83
while (base64PubKey.length > 0) {
84
pem += base64PubKey.substring(0, maxLineLength) + '\n'
85
base64PubKey = base64PubKey.substring(maxLineLength)
0 commit comments