code: function encode(buff) {
    const len = buff.byteLength;
    let off = 0;
    const stra = [];
  
    while (off < len) {
      let c1 = buff[off++] & 0xff;
      stra.push(BASE64_CODE[(c1 >> 2) & 0x3f]);
      c1 = (c1 & 0x03) << 4;
      if (off >= len) {
        stra.push(BASE64_CODE[c1 & 0x3f]);
        break;
      }
      let c2 = buff[off++] & 0xff;
      c1 |= (c2 >> 4) & 0x0f;
      stra.push(BASE64_CODE[c1 & 0x3f]);
      c1 = (c2 & 0x0f) << 2;
      if (off >= len) {
        stra.push(BASE64_CODE[c1 & 0x3f]);
        break;
      }
      c2 = buff[off++] & 0xff;
      c1 |= (c2 >> 6) & 0x03;
      stra.push(BASE64_CODE[c1 & 0x3f]);
      stra.push(BASE64_CODE[c2 & 0x3f]);
    }
    return stra.join('');
  }
docs: /* eslint-enable prettier/prettier 
  Encodes a Buffer to base64 using the bcrypt's base64 dictionary.
  @param {Buffer} buff Buffer to encode.
  @returns {string} The buffer encoded as a string.