Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: d9a0c22691
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (19 sloc) 0.673 kb

This is a perl6 module implementing some digest algorithms in pure Perl6 (no rakudo code).

The interface is minimal: functions only return Buf and only take a Buf as argument. It's up to the user to turn it into an hex string if he needs to.

use Digest::SHA;
say my $sha256 = sha256 "hello".encode: 'ascii';

use Digest::RIPEMD;
say rmd160 "bye".encode: "ascii";

sub buf_to_hex { [~] $^buf.list».fmt: "%02x" }
say buf_to_hex $sha256;

Currently implemented:

  • Digest
    • md5
  • Digest::SHA :
    • sha256
    • sha1
  • Digest::RIPEMD :
    • rmd160

This work is published under the terms of the artistic license, as rakudo is. See LICENSE file.

Jump to Line
Something went wrong with that request. Please try again.