Coder Social home page Coder Social logo

twik's Introduction

Twik

Python version of Twik

Build Status

Installation instructions:

  • Using PIP

pip install twik

  • Using easy_install

easy_install twik

  • Manual
git clone https://github.com/coxande/Twik.git
cd Twik
python setup.py install

Usage instructions :

usage: twik [-h] [-c CHARS] [-p PROFILE] [-t {1,2,3}] tag

positional arguments:
  tag                   generate password for a specified tag

optional arguments:
  -h, --help            show this help message and exit
  -c [4-26], --chars [4-26]
                        length of generated password [4-26]. Default: 12
  -p PROFILE, --profile PROFILE
                        profile to use. Default:'Profile'
  -t {1,2,3}, --passwordtype {1,2,3}
                        1 for ALPHANUMERIC_AND_SPECIAL_CHAR
                        2 for ALPHANUMERIC
                        3 for NUMERIC
                        Default: 1


Private Keys is stored in ~/.twik.conf you need change it to match with chrome extension and android app:

[Personal]
private_key = TFCY2AJI-NBPU-V01E-F7CP-PJIZNRKPF25W
chars = 8
password_type = 1
github_chars = 12
github_password_type = 1

[foobar]
# for set foobar as default profile
default = 1
private_key = VBHF4HAR-8M5Z-NK3B-KQWH-KG9ZYLER4916
chars = 22
password_type = 1
reddit_chars = 22
reddit_password_type = 2

twik's People

Contributors

alexandrepossebom avatar cvoinf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

twik's Issues

Can't define a default profile with a custom name

Currently, it's mandatory to have a profile with the name 'Profile', which is used by default. If you have several profiles (e.g. Personal and Work) and, for instance, you want Personal to be your default profile, this obliges you to set its name to 'Profile' instead of 'Personal', which is not very ilustrative.

I think that it would be useful to add a setting in the configuration file where you can define which of your profiles is the default one.

Crashes when the first profile is created

When you're generating the first password and there isn't any profile defined, Twik automatically creates a new profile. However, after introducing the master key, TypeError is thrown.

Traceback (most recent call last):
File "/usr/local/bin/twik", line 9, in
load_entry_point('twik==0.4', 'console_scripts', 'twik')()
File "/usr/local/lib/python2.7/dist-packages/twik/run.py", line 57, in main
util.get_chars(), util.get_passord_type())
File "/usr/local/lib/python2.7/dist-packages/twik/util.py", line 104, in get_chars
self.chars = self.config.getint(self.profile, 'chars')
File "/usr/lib/python2.7/ConfigParser.py", line 359, in getint
return self._get(section, int, option)
File "/usr/lib/python2.7/ConfigParser.py", line 356, in _get
return conv(self.get(section, option))
File "/usr/lib/python2.7/ConfigParser.py", line 623, in get
return self._interpolate(section, option, value, d)
File "/usr/lib/python2.7/ConfigParser.py", line 663, in _interpolate
if value and "%(" in value:
TypeError: argument of type 'int' is not iterable

Can't define default settings for a profile

Twik should allow the user to define default settings (password length and password type) for each profile. Therefore, the first time a tag is used, the default settings of the selected profile are used (unless the user specifies different settings using command line args).

Value of password length argument is not checked

For compatibility with the Android and Chrome apps, the allowed range for password lengths is [4, 26].
Currently, it is possible to force a IndexError because the value is too high (e.g. 100) or a ZeroDivisionError because its value is 0.

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.