I got downvoted for saying you should never store secrets in version control. Insane. I think some sophomores from /r/programmerhumor may be visiting.
You got downvoted because storing encrypted secrets is fine.
Storing where?
Only until/unless the encryption is broken. I wouldn’t store long-lived secrets even encrypted in a public place.