Keeper of the Harry Potter secrets

Who knew Professor Severus Snape was such a trustworthy person? 

I'm fascinated by the science of keeping secrets in this day and age, especially when the last Harry Potter book was about to be released.