Name : perl-Digest-Trivial
| |
Version : 2010011301
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.11.1
| Date : 2024-07-03 19:14:20
|
Group : Development/Libraries/Perl
| Source RPM : perl-Digest-Trivial-2010011301-lp156.11.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Trivial but fast ways to map strings to small integers
|
Description :
The module provides 2 methods that take a string as input, and return an integer (the digest) between 0 and 255 inclusive. The goal is to provide functions with algorithms, that are _fast_, _repeatable_, and map to all possible integers in the range roughly evenly. They aren\'t cryptically secure; the returned integer is easily guessable, and it\'s trivial to create a string that maps to a certain integer.
The following functions are available:
* \'trivial_x\'
Calculates the digest by \'xor\'ring the code points, returning the resulting value.
* \'trivial_s\'
Calculates the digest by adding the code points, returning the sum module 256.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-D/15.6/x86_64 |