infrastructure-upgrade/lib/v3-periphery/test/shared/base64.ts
T-Hax 735546619e
init
Signed-off-by: T-Hax <>
2023-04-08 18:46:18 +00:00

8 lines
215 B
TypeScript

export function base64Encode(str: string): string {
return Buffer.from(str, 'utf8').toString('base64')
}
export function base64Decode(str: string): string {
return Buffer.from(str, 'base64').toString('utf8')
}