Because there is no information about this device and software used, I recommend checking the official page of the software you used to encrypt the device. If you know the device's website as well, contact the manufacturer/developer and explain the situation. If you're talking about phones, a complete wipe is required in order to remove various settings from the phone.