woodsec v0.92 - tool to manipulate secure area.
produced by yellow wood goblin.

This command line tool allows proper encryption/decryption of NDS
ROMs. It can be used with NDSi ROMs too (this assumes that the same
NDS procedure applies for them).

In order to Encrypt a ROM, type:

woodsec e rom.nds

In order to Decrypt a ROM, type:

woodsec d rom.nds

Notes: The tool makes some minimal safe check in order to avoid
re-encrypting an already encrypted ROM, but it does NOT automatically
detect whether encryption or decryption is required for a given ROM,
(so you must specify "e" or "d" command manually).

The tool can be used in "batch mode" by creating a suitable .bat/.cmd
file. Encryption example:

@ECHO OFF
FOR %%a IN (X:\roms\nds\*.nds) DO woodsec e "%%a"
ECHO.
PAUSE

where you have to replace "X:\roms\nds\" with your own path. You can
also simply copy the tool to your ROM folder and type:

for %a in (*.nds) do woodsec e "%a"
