(base64)
| 113 | } |
| 114 | |
| 115 | export 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 | |
| 122 | export class Store { |
| 123 | constructor(storageKey) { |