Manually removing ENC Flag


I know there are utilities that can remove the ENC flag, but is it something I can manually do by editing files ?? With out the need for foxit etc ?

I'm looking at way's my server can automatically log in, remove the flag and then log out..

Any ideas ?? Thanks
Why reinvent the wheel? Auto-unprotect will do this for you: you need never think about ENC flags again.
Auto-unprotect can only be installed if you are running af123's custom hdf firmware.

If you're already running custom firmware then it can be installed via the web interface.