Generate hash from command-line

58 views
Skip to first unread message

Marcelo Garcia

unread,
Apr 21, 2022, 7:26:19 AM4/21/22
to droid-list
Hi

Is there a way to generate the hash sha256 using `droid` from the command line?

Interestingly, in the source code[1], there is an example:

```
droid -Pr "profile.maxBytesToScan=32768" -a "C:\\Files\\A Folder" -p "C:\\Results\\result1.droid".\n
```

But when I try:

```
PS C:\Users\garcm0b\Work\droid-binary-6.5.2-bin-win32-with-jre> .\droid.bat -Pr "profile.generateHash=true" -a "C:\Users\garcm0b\Work\013_002_0026" -p "C:\Users\garcm0b\Work\013_002_0026\013_002_0026.droid"
(...)
Incorrect command line syntax: org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -Pr
```

In my case, `droid` don't recognize the `-Pr` option, but I don't know why.

So, how to generate hash from command line?

Thank you

Best Regards

mg.

[1]
https://github.com/digital-preservation/droid/blob/master/droid-command-line/src/main/resources/options.properties
Reply all
Reply to author
Forward
0 new messages