(input: string)
| 24 | ]); |
| 25 | |
| 26 | function decodeBase64ToBytes(input: string): Uint8Array { |
| 27 | const bin = atob(input); |
| 28 | const out = new Uint8Array(bin.length); |
| 29 | for (let i = 0; i < bin.length; i++) out[i] = bin.charCodeAt(i); |
| 30 | return out; |
| 31 | } |
| 32 | |
| 33 | function encodeBytesToBase64(bytes: Uint8Array): string { |
| 34 | let bin = ""; |