The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Convert::ModHex - Conversion utilities between Yubico ModHex and hexa/decimal

VERSION

version 0.001

SYNOPSIS

    use Convert::ModHex qw( modhex2hex modhex2dec hex2modhex dec2modhex );
    
    my $modhex = 'ccbc';
    my $hex = modhex2hex($modhex);
    my $dec = modhex2dec($modhex);
    
    $modhex = hex2modhex($hex);
    $modhex = dec2modhex($dec);

DESCRIPTION

This module provides utility functions that you can use to convert between ModHex encoding (as used by the Yubikey tokens).

FUNCTIONS

modhex2hex

Accepts a ModHex-encoded scalar, returns a hexadecimal-encoded scalar.

modhex2dec

Accepts a ModHex-encoded scalar, returns a numeric scalar.

hex2modhex

Accepts a hexadecimal scalar and returns the ModHex-encoded scalar.

dec2modhex

Accepts a numeric scalar and returns the ModHex-encoded scalar.

SUPPORT

Perldoc

You can find documentation for this module with the perldoc command.

  perldoc Convert::ModHex

Websites

The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.

Email

You can email the author of this module at MELO at cpan.org asking for help with any problems you have.

Bugs / Feature Requests

Please report any bugs or feature requests by email to bug-convert-modhex at rt.cpan.org, or through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Convert-ModHex. You will be automatically notified of any progress on the request by the system.

Source Code

https://github.com/melo/Convert-ModHex

  git clone https://github.com/melo/Convert-ModHex.git

AUTHOR

Pedro Melo <melo@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Pedro Melo.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)