Key Stretching Key stretching is a technique used to strengthen weak encryption keys by applying a cryptographic function multiple times to increase the time it takes to perform a brute-force attack.