Index: utils/ofhash/Makefile ================================================================== --- utils/ofhash/Makefile +++ utils/ofhash/Makefile @@ -2,10 +2,11 @@ PROG = ofhash${PROG_SUFFIX} SRCS = OFHash.m DATA = localization/de.json \ localization/localizations.json +MAN = ofhash.1 include ../../buildsys.mk PACKAGE_NAME = ofhash ADDED utils/ofhash/ofhash.1 Index: utils/ofhash/ofhash.1 ================================================================== --- /dev/null +++ utils/ofhash/ofhash.1 @@ -0,0 +1,63 @@ +.\" +.\" Copyright (c) 2008-2024 Jonathan Schleifer +.\" +.\" All rights reserved. +.\" +.\" This program is free software: you can redistribute it and/or modify it +.\" under the terms of the GNU Lesser General Public License version 3.0 only, +.\" as published by the Free Software Foundation. +.\" +.\" This program is distributed in the hope that it will be useful, but WITHOUT +.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License +.\" version 3.0 for more details. +.\" +.\" You should have received a copy of the GNU Lesser General Public License +.\" version 3.0 along with this program. If not, see +.\" . +.\" +.TH ofhash 1 +.SH NAME +ofhash - hash files +.SH SYNOPSIS +.B ofhash +[\fB--md5\fR] [\fB--ripemd160\fR] [\fB--sha1\fR] [\fB--sha224\fR] +[\fB--sha256\fR] [\fB--sha384\fR] [\fB--sha512\fR] [\fB--iri\fR] +\fIfile1\fR [\fIfile2\fR ...] +.SH DESCRIPTION +.B ofhash +is a program to calculate the cryptographic hashes of files. +.SH OPTIONS +.TP +.BR \fB\-\-md5\fR +Calculate MD5 hashes. +.TP +.BR \fB\-\-ripemd160\fR +Calculate RIPEMD-160 hashes. +.TP +.BR \fB\-\-sha1\fR +Calculate SHA-1 hashes. +.TP +.BR \fB\-\-sha224\fR +Calculate SHA-224 hashes. +.TP +.BR \fB\-\-sha256\fR +Calculate SHA-256 hashes. +.TP +.BR \fB\-\-sha384\fR +Calculate SHA-384 hashes. +.TP +.BR \fB\-\-sha512\fR +Calculate SHA-512 hashes. +.TP +.BR \fB\-\-iri\fR +Treat the specified files as IRIs instead. +.SH EXAMPLES +Calculate the \fBSHA-256\fR and \fBSHA-512\fR hash of \fBfile1\fR and +\fBfile2\fR: +.PP + ofhash --sha256 --sha512 file1 file2 +.PP +Calculate the \fBSHA-256\fR hash of \fBhttps://example.com/\fR: +.PP + ofhash --sha256 --iri https://example.com/