Generated new key and encrypted it