libdigest-raku
libdigest-raku copied to clipboard
Raku implementation of various digests
Digests in raku
This is a raku module implementing some digest algorithms
either in pure raku (no parrot or nqp:: code), or using a process call to
the openssl
command.
The Digest
module also exports a subroutine blob-to-hex
to turn a blob into
a hexadecimal string representation.
Synopsis
use Digest::SHA;
say sha1 "hello";
say sha256 "Привет";
use Digest::RIPEMD;
say rmd160 "bye";
Features
Currently implemented:
- Digest
- md5
- blob-to-hex
- Digest::SHA :
- sha1
- sha256
- sha512 (via
openssl
)
- Digest::RIPEMD :
- rmd160
Disclaimer
PERFORMANCE WARNING: currently, execution is much slower than with most other programming languages.
License
This work is published under the terms of the artistic license, as rakudo is. See LICENSE file.