Name : perl-Digest
| |
Version : 1.20
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-03 19:12:02
|
Group : Unspecified
| Source RPM : perl-Digest-1.20-lp156.1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Modules that calculate message digests
|
Description :
The \'Digest::\' modules calculate digests, also called \"fingerprints\" or \"hashes\", of some data, called a message. The digest is (usually) some small/fixed size string. The actual size of the digest depend of the algorithm used. The message is simply a sequence of arbitrary bytes or bits.
An important property of the digest algorithms is that the digest is _likely_ to change if the message change in some way. Another property is that digest functions are one-way functions, that is it should be _hard_ to find a message that correspond to some given digest. Algorithms differ in how \"likely\" and how \"hard\", as well as how efficient they are to compute.
Note that the properties of the algorithms change over time, as the algorithms are analyzed and machines grow faster. If your application for instance depends on it being \"impossible\" to generate the same digest for a different message it is wise to make it easy to plug in stronger algorithms as the one used grow weaker. Using the interface documented here should make it easy to change algorithms later.
All \'Digest::\' modules provide the same programming interface. A functional interface for simple use, as well as an object oriented interface that can handle messages of arbitrary length and which can read files directly.
The digest can be delivered in three formats:
* _binary_
This is the most compact form, but it is not well suited for printing or embedding in places that can\'t handle arbitrary data.
* _hex_
A twice as long string of lowercase hexadecimal digits.
* _base64_
A string of portable printable characters. This is the base64 encoded representation of the digest with any trailing padding removed. The string will be about 30% longer than the binary version. MIME::Base64 tells you more about this encoding.
The functional interface is simply importable functions with the same name as the algorithm. The functions take the message as argument and return the digest. Example:
use Digest::MD5 qw(md5); $digest = md5($message);
There are also versions of the functions with \"_hex\" or \"_base64\" appended to the name, which returns the digest in the indicated form.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-D/15.6/noarch |