SYNOPSIS

check_passphrase(string $homedir, string $keyid | $mailaddress, string $passphrase);

change_passphrase(string $homedir, string $keyid | $mailaddress);

encrypt(string $homedir, string $filename, string $text_to_encode, string $recipient_keyid | $recipient_mailaddress

decrypt(string $homedir, string $filename, string $passphrase);


DESCRIPTION

These functions have been written for use in a user administration script, where we needed to store some passwords in a more or less safe matter. As we didn't know much about the GnuPG-Interface, we read us trough quite a lot of examples and documentation and got these functions.

They should provide a very easy to use interface to the main uses of GnuPG: encrypting and decrypting texts.

For all actions, you must also specify the GnuPG homedir (not to be confused with a user's home directory - the GnuPG homedir is the path where GnuPG stores its keyrings, trustdbs etc.), which makes it possible to have totally separate keyrings for use with this module.

If you have questions, feel free to contact the autors code@juz-kirchheim.de!


CHANGES

None after splitting this module out of our user administration scripts.


BUGS

None known. If you find one, please notify the authors by mail code@juz-kirchheim.de


AUTHORS

(C) 2002,2003 Walter Werther and Baltasar Cevc


COPYRIGHT

This program is copyrighted by its authors Walter Werther and Baltasar Cevc. It is free software - use annd distribute under the terms of the GPL (GNU Public License, Version 2, or at your choice any later version).