d0k3 / GodMode9

GodMode9 Explorer - A full access file browser for the Nintendo 3DS console :godmode:
GNU General Public License v3.0
2.12k stars 191 forks source link

Add user-facing SHA1 support #741

Closed aspargas2 closed 2 years ago

aspargas2 commented 2 years ago

This PR adds an option in the GUI to calculate the SHA-1 hash of any file, and adds a -1 flag to the sha, shaget, and cp -h scripting commands to use SHA-1 instead of the default SHA-256. It also allows for characters '0' through '5' to be used as flags for scripting commands, and fixes a bug in the scripting engine where err_str would not be set if an invalid character was passed as a flag.

d0k3 commented 2 years ago

Merged to master. I only slightly changed the display of SHA-1 checksums via an additional commit.