2
0
mirror of https://git.coolaj86.com/coolaj86/old-keypairs.js synced 2025-03-14 12:20:42 +00:00

add comment

This commit is contained in:
AJ ONeal 2018-12-17 21:29:45 -07:00
parent 665a2d2f8e
commit 1c1b9d00a9

View File

@ -4,6 +4,7 @@ var PEM = module.exports;
var Enc = require('./encoding.js');
PEM.packBlock = function (opts) {
// TODO allow for headers?
var n = opts.lineLength || 64;
var re = new RegExp('.{1,' + n + '}', 'g');
return '-----BEGIN ' + opts.type + '-----\n'