In cryptography , a weak key is a key which when used with a specific cipher , makes the cipher behave in some undesirable way , and simplifies breaking ( cracking ) the ciphertext . In cryptography , a weak key is a key , which , used with a specific cipher , makes the cipher behave in some undesirable way .