This article discusses the basic principle of present data encryption algorithm:DES algorithm and Rijndael algorithm of AES, and makes a comparison of symmetric cryptography algorithms, then analyzes the symmetric cryptography algorithms of DES and AES.