by yjftsjthsd-h · 5h ago · 0 comments
No, that's not what that word means. "Obscurity" means low/no entropy. If you're leaning on a "secret" int between 0 and 65,536 then it's going to break. If your secret is a random int between 0 and 2^2048 then that's not "obscurity", that's an actual secret.
By that Wikipedia definition, Wireguard is more obfuscated than SSH because it won't reveal that it exists to unauthorized users. This enhances its security.
Your example creates a binary that begs the question: how much entropy does it take to advance from obscurity to secret? "Defense in depth" implies many layers of imperfect obfuscation/secrets.
Security through obscurity means "as long as nobody knows our process we're safe"
Which is true in cryptography, knowing that primes are used does not suddenly make it surmountable.
If your security is that the ssh port is x, REGARDLESS of how many bits there are, it's security through obscurity. Someone reading the process would immediately know.
If your process is randomly picking a port, then that's not. You'd have to figure out how to communicate that port to your users though.