Secrets can be securely stored using encryption, secure key management systems, and hardware security modules (HSMs). They should be transmitted using secure protocols like HTTPS, and not be hard-coded in source code.