Very cool, but sadly not too practical (very vulnerable to shoulder surf attacks, and it's not that hard to tell that there's something funny about the knock).
PS: Here's a zero-technology solution to the "Yeah, but they'll overhear your secret knocks" problem: Scream while knocking