#include <libgda.h>
#include <iostream>

int main(int argc, char** argv)
{
  //Gtk::Main gtk(argc, argv);

  std::string text;
  while (std::cin >> text)
  {

    GdaBinary *blob = gda_string_to_binary(text.c_str());
    std::string converted_back = gda_binary_to_string(blob, text.length());

    std::cout << "bytes converted back: "
              << converted_back.length()
              << ", bytes originally: "
              << text.length()
              << std::endl;
  }

  return 0;
}
