We proposed a dynamic-key secure DFT structure that can generate the keys dynamicallydefend scan-basedmemory attacks without decreasing the system performancethe testability. Analysis results show that our method can achieve a very high security levelthe security level will not decrease no matter how many times the attacker guesses due to the dynamic characteristic of our method.