Git Product home page Git Product logo

p5-data-simplepassword's Introduction

NAME

Data::SimplePassword - Simple random password generator

SYNOPSIS

use Data::SimplePassword;

my $sp = Data::SimplePassword->new;
$sp->chars( 0..9, 'a'..'z', 'A'..'Z' );    # optional

my $password = $sp->make_password( 8 );    # length

DESCRIPTION

YA very easy-to-use but a bit strong random password generator.

METHODS

  • new

      my $sp = Data::SimplePassword->new;
    

    Makes a Data::SimplePassword object.

  • chars

      $sp->chars( 0..9, 'a'..'z', 'A'..'Z' );    # default
      $sp->chars( 0..9, 'a'..'z', 'A'..'Z', qw(+ /) );    # b64-like
      $sp->chars( 0..9 );
      my @c = $sp->chars;    # returns the current values
    

    Sets an array of characters you want to use as your password string.

  • make_password

      my $password = $sp->make_password( 8 );    # default
      my $password = $sp->make_password( 1024 );
    

    Makes password string and just returns it. You can set the byte length as an integer.

EXTRA METHODS

  • provider

      $sp->provider("devurandom");    # optional
    

    Sets a type of random number generator, see Crypt::Random::Provider::* for details.

  • is_available_provider

      $sp->is_available_provider("devurandom");
    

    Returns true when the type is available.

  • seed_num

      $sp->seed_num( 32 );    # up to 624
    

    Sets initial seed number (internal use only).

COMMAND-LINE TOOL

A useful command named rndpassword(1) will be also installed. Type man rndpassword for details.

DEPENDENCY

Moo, UNIVERSAL::require, Crypt::Random, Math::Random::MT (or Math::Random::MT::Perl),

SEE ALSO

Crypt::GeneratePassword, Crypt::RandPasswd, String::MkPasswd, Data::Random::String, String::Random, Crypt::XkcdPassword, Session::Token

http://en.wikipedia.org/wiki//dev/random

REPOSITORY

https://github.com/ryochin/p5-data-simplepassword

AUTHOR

Ryo Okamoto <[email protected]>

COPYRIGHT & LICENSE

Copyright (c) Ryo Okamoto, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

p5-data-simplepassword's People

Contributors

ryochin avatar

Watchers

 avatar James Cloos avatar  avatar

p5-data-simplepassword's Issues

Takes A Bit To Generate A Password

Perhaps add a note in the documents that it can take some time to generate a password?

I had no problem on my local machine, but when I moved my app to a more limited machine, I had puzzling hangs. Replacing this module with a less secure but less needy module -- String::MkPasswd (linked in the docs) -- solved the problem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.