SYSTEM AND METHOD FOR ENCRYPTING DATA FILES

Information

  • Patent Application
  • 20070162747
  • Publication Number
    20070162747
  • Date Filed
    December 15, 2006
    17 years ago
  • Date Published
    July 12, 2007
    16 years ago
Abstract
An exemplary method for encrypting data files automatically is provided. The method includes: reading a configuration file, the configuration file comprising configuration information that comprises a name and a data path of a data file directory and data formats of data files to be encrypted; monitoring whether there is a new data file been newly added into the data file directory; detecting whether data format of the new data file is one of the data formats as set forth in the configuration file; detecting whether the new data file has an encryption mark if the data format of the new data file is one of the data formats; generating corresponding encryption details if the new data file does not have an encryption mark; and encrypting the new data file according to the encryption details. A related system is also provided.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic diagram illustrating an application environment of a system for encrypting data files in accordance with one preferred embodiment;



FIG. 2 is a schematic diagram of software function modules of the system of FIG. 1; and



FIG. 3 is a flowchart of a preferred method for encrypting data files in accordance with another embodiment.


Claims
  • 1. A system for encrypting data files configured in a data file server, the system comprising: a configuration file storing module configured for storing a configuration file, the configuration file comprising configuration information that comprises a name and a data path of a data file directory and data formats of data files to be encrypted;a directory monitoring module configured for reading the configuration information in the configuration file, monitoring whether there is a new data file been newly added into the data file directory;a file format detecting module configured for detecting whether data format of the new data file is one of the data formats as set forth in the configuration file, detecting whether the new data file has an encryption mark if the data format of the new data file is one of the data formats as set forth in the configuration file; anda file encrypting module configured for generating encryption details corresponding to the new data file if the new data file does not have an encryption mark, and encrypting the new data file according to the encryption details thereby yielding an encrypted file of the new data file.
  • 2. The system according to claim 1, further comprising a transmitting module configured for transmitting the encryption details to a database server that stores the encryption details into a database.
  • 3. The system according to claim 2, wherein the encryption details are used for decrypting the corresponding encrypted file.
  • 4. The system according to claim 3, wherein the data file directory is configured for storing data files to be encrypted or decrypted, the data files comprising temporary files, encrypted files, and decrypted files.
  • 5. The system according to claim 3, wherein the transmitting module is further configured for verifying whether the encryption details have been stored into the database.
  • 6. The system according to claim 5, further comprising a recording module configured for recording errors of failing to store the encryption details into the database.
  • 7. A method for encrypting data files configured in a data file server, the method comprising: reading a configuration file, the configuration file comprising configuration information that comprises a name and a data path of a data file directory and data formats of data files to be encrypted;monitoring whether there is a new data file been newly added into the data file directory;detecting whether data format of the new data file is one of the data formats as set forth in the configuration file;detecting whether the new data file has an encryption mark if the data format of the new data file is one of the data formats;generating corresponding encryption details if the new data file does not have an encryption mark; andencrypting the new data file according to the encryption details thereby yielding an encrypted file of the new data file.
  • 8. The method according to 7, further comprising: storing the encryption details into a database;detecting whether the encryption details have been successfully stored in the database; andrecording error that the encryption details are failed to be stored into the database.
  • 9. The method according to 8, further comprising: reading the encryption details of the encrypted file from the database, and decrypting the encrypted file by utilizing the encryption details.
Priority Claims (1)
Number Date Country Kind
200610032911.8 Jan 2006 CN national