I just came across

http://www.cr0.net:8040/code/crypto/

and I found it really useful to understand cryptography better. Although it doesn't contain code for all cryptographics systems, the most widespread ones are featured... I hope this helps somebody else as much as it has helped me.