http://en.wikipedia.org/wiki/EncryptionIn cryptography, encryption is the process of encoding messages (or information) in such a way that eavesdroppers or hackers cannot read it, but that authorized parties can.
Are you aware that PGP uses SHA-2 as it's encryption algorithm.
Okay, get this through your thick skull:
Hash function -> One way message digest. Cannot go from digest to input without brute force (barring attacks against the algo).
Encryption algorithm -> A reversible encoding that can only be reversed with additional information, the key.
PGP may very well use SHA-2, but it's for hashing, not for encryption.
May I ask what your background or education is for programming/computers? If you're self learned that's fine too - I've personally met 16 year old hackers all self learned who hacked in NASA servers and the pentagon.