The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Dipki::Hash - Message Digest Hash Functions.

Data function

Compute message digest as a byte array from bytes data

Synopsis

  $h = Dipki::Hash::Data($data, $alg);

File function

Compute message digest of a binary file.

Synopsis

  $dig = Dipki::Hash::File($fname, $alg);

HexFromData function

Compute message digest in hexadecimal format from binary data

Synopsis

  $s = Dipki::Hash::HexFromData($data, $alg);

Double function

Compute double hash, i.e. hash of hash, in binary format from binary input.

Synopsis

  $dif = Dipki::Hash::Double($data, $alg);

AUTHOR

David Ireland, https://www.cryptosys.net/contact/

COPYRIGHT AND LICENSE

Copyright (C) 2022 David Ireland, DI Management Services Pty Limited, https://www.di-mgt.com.au https://www.cryptosys.net. The code in this module is licensed under the terms of the MIT license. For a copy, see http://opensource.org/licenses/MIT