GithubHelp home page GithubHelp logo

hortocam / xkpasswd.pm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bbusschots/hsxkpasswd

0.0 2.0 0.0 235 KB

A Perl module for generating secure memorable passwords inspired by the fabulous XKCD web comic. This is the library that drives www.xkpasswd.net

License: BSD 2-Clause "Simplified" License

Perl 100.00%

xkpasswd.pm's Introduction

xkpasswd.pm

A Perl module for generating secure memorable passwords inspired by the fabulous XKCD web comic. This is the library that drives www.xkpasswd.net

This library is provided entirely free of charge under a very liberal free licence. It has taken a signifficant amount of time to write, and continues to take time to maintain and update. If you'd like to contribute towards that time and efford please consider making a donation at the project's home page (linked above).

Quick Install Guide

This guide assumes a Linux/Unix OS (including OS X) with Perl and GIT installed (Mac users will need to install the free XCode developer tools available in the Mac App Store to install GIT)

$ cd /usr/local/
$ sudo git clone https://github.com/bbusschots/xkpasswd.pm.git

Perl One-liners

These commands all assume XKPasswd was installed in /usr/local/xkpasswd.pm/, if you install it elsewhere, update the path within the commands.

To see a list of defined presets use:

perl -e 'use lib "/usr/local/xkpasswd.pm/";use XKPasswd; print join ", ", XKPasswd->defined_presets(); print"\n";'

To see the details of a preset use a command of the form (replacing WEB32 with which ever preset you want to view):

perl -e 'use lib "/usr/local/xkpasswd.pm/";use XKPasswd; my $xkpasswd = XKPasswd->new("/usr/local/xkpasswd.pm/sample_dict.txt", "WEB32"); print $xkpasswd->status();'

To generate a password using a preset you can use a command of the form (replacing WEB32 with which ever preset you want to view):

perl -e 'use lib "/usr/local/xkpasswd.pm/";use XKPasswd; print xkpasswd("/usr/local/xkpasswd.pm/sample_dict.txt", "WEB32")."\n";'

Sample Perl File

This sample file assumes XKPasswd has been installed in /usr/local/xkpasswd.pm/, if you install it elsewhere, update the paths in the script accordingly.

use lib '/usr/local/xkpasswd.pm/';
use XKPasswd;

print xkpasswd('/usr/local/xkpasswd.pm/sample_dict.txt', 'WEB32')."\n";

xkpasswd.pm's People

Contributors

bbusschots avatar

Watchers

 avatar  avatar

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.