export function encryptString(str: string, secretKeyBuffer: Buffer): Base64String {
  const { key, iv } = getCryptoParams(secretKeyBuffer)
  const cipher = crypto.createCipheriv(algorithm, key, iv)
  return cipher.update(str, 'utf8', 'base64') + cipher.final('base64')
}