Patent ID: 8782428

Claim:
An encryption device comprising: an encrypting unit that encrypts data stored in a storage medium that belongs to a Redundant Array of Inexpensive Disks (RAID) group, and writes the encrypted data to a spare storage medium that does not belong to the RAID group; a copying unit that copies, after the writing is completed by the encrypting unit, the encrypted data written to the spare storage medium by the encrypting unit, to the storage medium; and a changing unit that changes, before the encryption is started by the encrypting unit, encryption information for the spare storage medium from information that is indicative of being unencrypted to information that is indicative of being encrypted, changes, after the writing is completed by the encrypting unit, the encryption information for the spare storage medium from the information that is indicative of being encrypted to information that is indicative of having been encrypted, changes encryption information for the storage medium from the information that is indicative of being unencrypted to the information that is indicative of being encrypted, and changes, after the copying is completed by the copying unit, the encryption information for the storage medium from the information that is indicative of being encrypted to the information that is indicative of having been encrypted, wherein the spare storage medium is one of a plurality of spare storage mediums that do not belong to the RAID group and are prepared corresponding to a number of storage mediums belong to the RAID group.