martijnvanbrummelen / nwipe

nwipe secure disk eraser
GNU General Public License v2.0
688 stars 79 forks source link

PDFGen16 - further work on PDF certificate #451

Closed PartialVolume closed 1 year ago

PartialVolume commented 1 year ago
  1. Added a new icon, a yellow exclamation in a red circle with the words "erased with a warning" inside the circle. This is used instead of the green tick icon or red cross icon when a disk is successfully erased as requested but the user chose not to expose the hidden sectors by removing the HPA and/or restoring the drive configuration overlay (DCO).

  2. Expanded the size of the "Disk Erasure Details" section on the certificate by 20 points to provide better spacing for warnings

  3. Removed remapped sectors label, as that information already appears on page 2 in the smart data.

  4. Improvements to the logic in regards to text colour changes.

  5. Added a additional red warning message in the information section when the exposed sectors of the disc are erased but the hidden sectors are not.

  6. Added the original images in .xcf (gimp) and jpg formats that are used to generate the embedded .c and .h files using bin2c.

In this example PDF, it shows a 500GB drive that I expanded the hidden sectors via the HPA so that about 499.5GB was hidden and a tiny 512Kbytes was seen by the O.S. I then wiped the drive. The report shows as erased but with the Yellow exclamation icon instead of the green tick. On the certificate it explains that as requested the visible section of the drive was erased successfully but the user chose not to remove the HPA and/or restore the device configuration overlay therefore the hidden area was NOT erased.

nwipe_report_2023-03-11-22-38-43_Model_ST350031_2CS_Serial_XXXXXXXXXXXXXXX.pdf

And a snapshot

Screenshot_20230311_224241 Screenshot_20230311_224351