GnuPG (AKA. GPG. AKA. The GNU Privacy Guard) is a cross platform, open source implementation of the OpenPGP standard developed by the community at GnuPG.org.
You can download the source code for GnuPG here