Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implement sha256_print for Str arguments

  • Loading branch information...
commit 57b89f3c0abcd97d044bf3e5378d4347dea1c350 1 parent 20797e0
Carlin authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/Digest/SHA256.pm
View
8 lib/Digest/SHA256.pm
@@ -86,10 +86,14 @@ multi sub sha256_hex(@msg) is export {
return nqp::p6box_s($PD.sha_hex());
}
-sub sha256_print(@sum) is export {
- sha256_sum(@sum);
+multi sub sha256_print($sum) is export {
+ sha256_sum($sum);
return nqp::p6box_s($PD.sha_print());
}
+multi sub sha256_print(@sum) is export {
+ return sha256_print(@sum.join);
+}
+
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.