Help language development. Donate to The Perl Foundation

Digest::BubbleBabble cpan:KAIEPI last updated on 2018-08-08

Digest-BubbleBabble-0.0.2/

Build Status

NAME

Digest::BubbleBabble - Support for BubbleBabble string encoding and decoding

SYNOPSIS

use Digest::BubbleBabble;

my $digest = 'BubbleBabble is useful!'.encode;
my $fingerprint = Digest::BubbleBabble.encode($digest);
say $fingerprint.decode; # xidez-kidoh-sucen-furyd-sodyz-gidem-doled-cezof-rexux

$digest = Digest::BubbleBabble.decode($fingerprint);
say $digest.decode; # BubbleBabble is useful!

say Digest::BubbleBabble.validate('xexax'.encode);        # True
say Digest::BubbleBabble.validate('YXl5IGxtYW8K'.encode); # False

DESCRIPTION

Digest::BubbleBabble is a way of encoding digests in such a way that it can be more easily legible and memorable for humans. This is useful for cryptographic purposes.

METHODS

Returns the given digest blob, encoded as a BubbleBabble fingerprint.

Returns the decoded BubbleBabble fingerprint blob. This throws an X::Digest::BubbleBabble::Decode exception if the fingerprint provided does not follow BubbleBabble encoding.

This validates whether or not a fingerprint uses valid BubbleBabble encoding. Returns True when the fingerprint is valid, and False otherwise.

AUTHOR

Ben Davies (kaiepi)

COPYRIGHT AND LICENSE

Copyright 2018 Ben Davies

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.