Convert-SSH2

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

    dist_author         => q{Mark Allen <mrallen1@yahoo.com>},
    dist_version_from   => 'lib/Convert/SSH2.pm',
    configure_requires => {
        'Module::Build' => '0.38',
    },
    build_requires => {
        'Test::More' => 0,
    },
    requires => {
        'perl' => '5.010',
        'Try::Tiny' => 0,
        'MIME::Base64' => 0,
        'Convert::ASN1' => 0,
        'Class::Load' => '0.13',
        'File::Slurp' => 0,
        'Moo' => '0.009013',
        'Math::BigInt' => 0,
    },
    add_to_cleanup      => [ 'Convert-SSH2-*' ],
    create_makefile_pl => 'traditional',
    meta_merge => {

META.json  view on Meta::CPAN

         }
      },
      "runtime" : {
         "requires" : {
            "Class::Load" : "0.13",
            "Convert::ASN1" : 0,
            "File::Slurp" : 0,
            "MIME::Base64" : 0,
            "Math::BigInt" : 0,
            "Moo" : "0.009013",
            "Try::Tiny" : 0,
            "perl" : "5.010"
         }
      }
   },
   "provides" : {
      "Convert::SSH2" : {
         "file" : "lib/Convert/SSH2.pm",
         "version" : "0.01"
      },
      "Convert::SSH2::Format::Base" : {

META.yml  view on Meta::CPAN

  Convert::SSH2::Format::PKCS8:
    file: lib/Convert/SSH2/Format/PKCS8.pm
    version: 0.01
requires:
  Class::Load: 0.13
  Convert::ASN1: 0
  File::Slurp: 0
  MIME::Base64: 0
  Math::BigInt: 0
  Moo: 0.009013
  Try::Tiny: 0
  perl: 5.010
resources:
  license: http://dev.perl.org/licenses/
  repository: https://github.com/mrallen1/Convert-SSH2.git
version: 0.01

Makefile.PL  view on Meta::CPAN

  'NAME' => 'Convert::SSH2',
  'VERSION_FROM' => 'lib/Convert/SSH2.pm',
  'PREREQ_PM' => {
                   'Class::Load' => '0.13',
                   'Convert::ASN1' => 0,
                   'File::Slurp' => 0,
                   'MIME::Base64' => 0,
                   'Math::BigInt' => 0,
                   'Moo' => '0.009013',
                   'Test::More' => 0,
                   'Try::Tiny' => 0
                 },
  'INSTALLDIRS' => 'site',
  'EXE_FILES' => [],
  'PL_FILES' => {}
)
;

lib/Convert/SSH2.pm  view on Meta::CPAN

package Convert::SSH2;

use 5.010;
use strict;
use warnings;

use Moo;
use MIME::Base64 qw(decode_base64);
use File::Slurp qw(read_file write_file);
use Carp qw(confess);
use Try::Tiny;
use Class::Load qw(load_class);
use Math::BigInt try => 'GMP';

=head1 NAME

Convert::SSH2 - Convert SSH2 RSA keys to other formats

=head1 VERSION

Version 0.01

lib/Convert/SSH2.pm  view on Meta::CPAN

has '_e' => (
    is => 'rw',
);

has '_n' => (
    is => 'rw',
);

=head1 METHODS 

Generally, errors are fatal.  Use L<Try::Tiny> if you want more graceful error handling.

=over

=item new()

Constructor. Takes any of the attributes as arguments.  You may optionally call new
with either a buffer or a path, and the class will assume that it is the C<key>
material.

The object automatically attempts to parse C<key> data after instantiation.



( run in 1.101 second using v1.01-cache-2.11-cpan-05444aca049 )