From 10d74bdeb0105c86e383de9d6ae2f2d5fd8db6c7 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 12 Jul 2010 22:49:21 +0000 Subject: Move gtk example to attic --- Attic/gtk/readme.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Attic/gtk/readme.txt (limited to 'Attic/gtk/readme.txt') diff --git a/Attic/gtk/readme.txt b/Attic/gtk/readme.txt new file mode 100644 index 000000000..4f3691166 --- /dev/null +++ b/Attic/gtk/readme.txt @@ -0,0 +1,18 @@ + +This is an example of how to use Botan in a GUI. You need at least +Botan 1.6.0. + +You'll also need GTK+ 2.x (tested with GTK+ 2.10; should work with +most versions). Keep in mind that I was learning GTK as I was writing +this code, so it is not exactly the best GTK code you're likely to +see. + +dsa.cpp is the main GTK+ driver. It has some comments at the top which +point out major areas of interest. + +gtk_ui.* implement a User_Interface object that opens up a GTK+ dialog +box that asks the user for their passphrase. It works pretty well, the +only major deficiency is a fixed upper limit on the size of the +passphrase (currently 64). You may want to use this in your own code, +assuming you use GTK. If not, it should at least provide an outline +for writing a version for your favorite windowing system. -- cgit v1.2.3