MCPcopy
hub / github.com/mailvelope/mailvelope / armor

Function armor

src/modules/autocryptWrapper.js:115–120  ·  view source on GitHub ↗
(base64)

Source from the content-addressed store, hash-verified

113}
114
115export function armor(base64) {
116 const head = '-----BEGIN PGP PUBLIC KEY BLOCK-----';
117 const footer = '-----END PGP PUBLIC KEY BLOCK-----';
118 const lines = base64.match(/.{1,64}/g);
119 return [head, ''].concat(lines).concat([footer]).join('\n');
120}
121
122export class Store {
123 constructor(storageKey) {

Callers 1

lookupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected