<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,6 +37,55 @@ as you would use GnuPG::Interface, except for the POE signals of course.
 
 =head1 SYNOPSIS
 
+  # Example 0 :
+  # Quickly encrypt some text
+
+  use POE qw(Wheel::GnuPG);
+
+  POE::Session-&gt;create(
+    inline_states =&gt; {
+      _start =&gt; sub {
+
+        my $gnupg = POE::Wheel::GnuPG-&gt;new(
+          ready_to_input_data =&gt; 'ready_to_input_data',
+          something_on_stdout =&gt; 'something_on_stdout',
+          end_of_process =&gt; 'the_end',
+        );
+        $_[HEAP]{gnupg} = $gnupg;
+
+        $gnupg-&gt;options-&gt;hash_init( armor   =&gt; 1,
+                                    homedir =&gt; '/home/dams/.gnupg' );
+		$gnupg-&gt;options-&gt;push_recipients( 'foo@bar.org' );
+        $gnupg-&gt;options-&gt;meta_interactive( 0 );
+
+        $gnupg-&gt;encrypt();
+      },
+
+      ready_to_input_data =&gt; sub {
+        my $input_fh = $_[ARG0];
+        print $input_fh &quot;This is the secret data!&quot;;
+
+        $_[HEAP]{gnupg}-&gt;finished_writing_input();
+      },
+
+      something_on_stdout =&gt; sub {
+		  my $stdout_fh = $_[ARG0];
+          return if eof $stdout_fh;
+          my @output = &lt;$stdout_fh&gt;;
+          print &quot;Received crypted data : @output\n&quot;;
+      },
+      the_end =&gt; sub {
+          # clean up
+          $_[HEAP]{gnupg}-&gt;destroy();
+          exit();
+      },
+    }
+  );
+
+  POE::Kernel-&gt;run();
+  exit;
+
+
   # Example 1 :
   # decrypt a file bits by bits asynchronously
   # without storing decrypted data on the filesystem.</diff>
      <filename>lib/POE/Wheel/GnuPG.pm</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ccd103a5bbcec301c7b927a6f5b4d92930ef4122</id>
    </parent>
  </parents>
  <author>
    <name>Damien Krotkine</name>
    <email>dams@erable.local</email>
  </author>
  <url>http://github.com/dams/poe-wheel-gnupg/commit/77db3be9d54de4aecab1bfa27f249a00f83c459a</url>
  <id>77db3be9d54de4aecab1bfa27f249a00f83c459a</id>
  <committed-date>2009-05-23T01:39:34-07:00</committed-date>
  <authored-date>2009-05-23T01:39:34-07:00</authored-date>
  <message>added simple example</message>
  <tree>e743649cc550e736fa43177a7b37a26ea12666af</tree>
  <committer>
    <name>Damien Krotkine</name>
    <email>dams@erable.local</email>
  </committer>
</commit>
