Using Python, develop a code that demonstrates the PGP algorithm. Include key generation, key management, symmetric key, encryption, decryption, hash functions, compression, and ciphertext. Also, refer to the following diagram. The code must demonstrate the PGP algorithm from sending an encrypted message from a sender to a receiver, also demonstrating the previous functions and using the pgpy libraries.
Below is the PGP diagram:
Alice Signs
Bob's Public Key
Bob's Private Key
Bob Verifies Alice's Public Key
Alice's Private Key
Session Key
Session Key
EP
DP
d=3di6b183cb4 19005cb149007
DP
Hm
un ZIP
Hm
EP
ZIP
ES
cb7454cb68
DS
b75d5dNa1b418
Hm
M
ab7454cb68c
M T