Help language development. Donate to The Perl Foundation

Crypt::CAST5 cpan:KAIEPI last updated on 2018-11-05

Crypt-CAST5-0.0.1/

Build Status

NAME

Crypt::CAST5 - CAST-128 encryption library

SYNOPSIS

use Crypt::CAST5;

my Crypt::CAST5 $cast5   .= new: 'ayy lmao';
my Str          $in       = 'ayy lmao';
my Blob         $encoded  = $cast5.encode: $in.encode;
my Blob         $decoded  = $cast5.decode: $encoded;
my Str          $out      = $decoded.decode;
say $out; # ayy lmao

DESCRIPTION

Crypt::CAST5 is a library that handles encryption and decryption using the CAST-128 algorithm.

METHODS

Encodes $in using CAST-128 encryption and returns the result.

Decodes $in using CAST-128 encryption and returns the result.

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.