Giter Site home page Giter Site logo

pypin's Introduction

PyPIN

WARNING: This project is a work-in-progress!

PyPIN is a very simple Python module which can generate every possible 4-digit or 8-digit number, among a couple extra features. It got its name from its original use - generating sets of Bluetooth & 802.11 WPS PINs for an upcoming project. However, it can be used in a variety of ways - the sky's the limit!

Usage

To "install" the module, simply place PyPIN.py in the same directory as the script using it, or better yet, put it in your PYTHONPATH.

Functions:

import PyPIN
# To output every number between 0 and 9999:

PyPIN.uptofour()

# Unfortunately, it's not currently possible to generate PINs starting with 0 (other than 0 itself...)

# To output every number between 1000 and 9999:

PyPIN.allfour()

# Same two things go for the generation of eight-digit PINs: "PyPIN.alleight" and "PyPIN.uptoeight" act the same as their four-digit counterparts.

Known bugs

The only currently-known bug is that, as mentioned above, it is currently not possible to generate any PIN beginning with 0, other than the number zero itself in "upto" functions. This is caused by the way Python (and most other languages, for that matter) handle integers. I am working on a way to bypass this without having to encode the PINs as strings.

Please do not use this module to brute-force credit card PINs.

pypin's People

Contributors

minsectek 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.