Dynamicly generating the security key