1. A computer-implemented method for generating a quarantine file from a regular file, the method comprising: (a) encoding data in the regular file with a reversible function; (b) identifying a set of metadata that describes attributes of the regular file; (c) combining the encoded file data and the set of metadata in the quarantine file; and (d) setting attributes of the quarantine file to match the attributes of the regular file.