export const encodeString = (input: string) => { if (!input) return; const inputBuff = Buffer.from(input); return inputBuff.toString('base64'); };