Code Monkey home page Code Monkey logo

zazu-password's Introduction

Zazu Password

A simple password generator for Zazu, inspired by the DuckDuckgo password generator.

Usage

Open Zazu and type password with optional a password strength (weak, average, strong) and a password length.
Examples:

  • password
  • password hard 30
  • password 10 weak
  • password average
  • password 16

You an copy the generated password by selecting it.

Instead of password you can also use pass or pwd as prefix.

Installing

Add jnstr/zazu-password inside of plugins block of your ~/.zazurc.json file.

{
  "plugins": [
    "jnstr/zazu-password"
  ]
}

The plugin defaults to an average password of 16 characters, but you can override these in your ~/.zazurc.json file.

{
  "plugins": [
    {
      "name": "jnstr/zazu-password",
      "variables": {
          "length": 64,
          "strength": "hard"
      }
    }
  ]
}

Security

Since all results that are displayed and returned by a Zazu plugin are stored in the log files, it's insecure to display and render the generated password in zazu. This is the reason why we don't show the generated password in the plugin.
The password is generated in the plugin but is never handled by Zazu which makes it more secure.

If you really really want to see the generated password in zazu, you can add the "insecure" option to the plugin config in ~/.zazurc.json and set it to true.

{
  "plugins": [
    {
      "name": "jnstr/zazu-password",
      "variables": {
          "insecure": true
      }
    }
  ]
}

Screenshots

Zazu password

insecure password:
Zazu password insecure

zazu-password's People

Contributors

jnstr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

zazu-password's Issues

Don't return password in results

Since you are returning the password in the results it's stored in the zazu log files ~/.zazu/log.

To get around this imagine a workflow like:

"password strong 32" -> "prefix script" that doesn't generate the password but passes "strong 32" to the next block.

The next block "copy" is a user script which takes in "strong 32" as value from the previous block, it generate the password and copies it to the clipboard using the clipboard from the pluginContext.

Now Zazu never handles the secure password, but it's kept within the plugin making it more secure.

Use SVG icon

The icon is in png now, but resulting the icon results in jagged lines.
We'll use the svg version instead (also update the main zazu repo with the svg icon)

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.