Data classification and encryption method for cloud storage

The invention provides a data classification and encryption method for cloud storage, and belongs to the field of computer storage safety. According to the method, the problems that the calculation amount is large and the efficiency is low due to the facts that an existing data encryption method does not identify data content and a single encryption algorithm is used for all data are solved. The method sequentially includes the steps of (1) security feature library establishment, (2) data classification, (3) data encryption according to classes and (4) data storage. According to the method, a high-security encryption algorithm is adopted only in the part of data related to privacy and needing high-security protection, and an encryption algorithm which is low in security and low in calculation complexity is adopted in general data accounting for the most part, high-security protection is performed on the privacy data, meanwhile, the calculation amount for encryption is lowered, and the efficiency is improved.