Differential power analysis( DPA) posed a great threat to cipher devices which included the AES algorithm. Defense against DPA have become the research hotspot,mostly on the hardware encryption circuit. This paper proposed a software protection scheme. The scheme introduced mask matrix and added random masks to all of intermediate values that might be leaked during the encryption process. The experimental results show that proposed DPA protection scheme can resist DPA. The scheme is also very effective by m...