Myriad::Util::Secret - protect secrets from getting exposed accidentally
my $secret = Myriad::Util::Secret->new('shh.. secret!');
When stringified, this will return *** instead of the real data.
***
Returns true if the secret value does not match the provided value.
Returns true if the secret value matches the provided value.
Returns the original secret value as text.
String::Compare::ConstantTime - handles the constant-time comparison, but returns early if the string lengths are different, which is problematic since knowing the length makes attacks easier
Deriv Group Services Ltd. DERIV@cpan.org.
DERIV@cpan.org
See "CONTRIBUTORS" in Myriad for full details.
Copyright Deriv Group Services Ltd 2020-2022. Licensed under the same terms as Perl itself.
To install Myriad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Myriad
CPAN shell
perl -MCPAN -e shell install Myriad
For more information on module installation, please visit the detailed CPAN module installation guide.