There’s a canonical term for this: rubber hose cryptography. That’s when you beat someone with a rubber hose until they give you the key. It’s effective against a wide range of algorithms and constructions.
This is generally hard. Because you gotta know, at the time of being tortured, which fake secret will give believable results.