Failure is not a bad thing. It's part of the process of learning and improving.
The essence of cryptography is to allow communication in the presence of adversaries.