- 论坛徽章:
- 0
|
众所周知,Linux下可以直接用md5sum命令来获得文件的MD5码。但是Solaris下并无md5sum命令。
今天特意查询了一下,找到Solaris下的替代命令:digest
具体用法大家man一下就可以了,不细说了。
User Commands digest(1)
NAME
digest - calculate a message digest
SYNOPSIS
/usr/bin/digest -l | [-v] -a algorithm [file]...
DESCRIPTION
The digest utility calculates the message digest of the
given files or stdin using the algorithm specified. If more
than one file is given, each line of output is the digest of
a single file.
OPTIONS
The following options are supported:
-a algorithm Specifies the name of the algorithm to use
during the encryption or decryption process.
See USAGE, Algorithms, for details.
-l Displays list of algorithms available on the
system. This list can change depending on
the configuration of the cryptographic
framework.
-v Verbose output. Includes the algorithm name
and filename in the output. |
|