docs: @Deprecated
      public static byte[] encodeToBytes(byte[] bytes)
      {
          try {
              char[] chars = Base64.encode(bytes);
              String string = new String(chars);
              return string.getBytes(DEFAULT_ENCODING);
          } catch (UnsupportedEncodingException e) {
              e.printStackTrace();
              return null;
          }
      }