Keeping secrets others have entrusted us with is part of our duty. We would be committing grave injustice by “leaking” what we held in confidence. Many take this for granted, thinking that the password is “don’t tell anybody but…” yet even that is a sin. It destroys good relations & wreaks havoc in society.
It is also advised NOT to share secrets unnecessarily in the first place. Many people have regretted this.