Question: what is the relation between key size and security?
Answer: In general, the longer a key is, the better security it provides (assuming it is truly random). With symmetric keys, the security they provide theoretically increases exponentially with their length (for any given algorithm) – adding one more bit doubles their resistance against brute-force attacks.