Giter Site home page Giter Site logo

k4ved / pwx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michaelthessel/pwx

0.0 0.0 0.0 1.34 MB

Online password exchange service

Home Page: https://pwx.michaelthessel.com

License: MIT License

Shell 0.73% JavaScript 12.98% PHP 70.80% CSS 0.68% Twig 14.80%

pwx's Introduction

Build Status Known Vulnerabilities

Gitter

About

PWX allows you to set up your own password exchange service to share passwords via a temporary link.

For more information please check out my blog

Example

https://pwx.michaelthessel.com

Installation

Download the current stable release here or clone the repository.

Install dependencies:

# php composer.phar install

Create configuration file and adjust according to your environment:

# cp app/config.php.sample app/config.php

Create the database schema:

# app/console orm:schema-tool:create

Web server configuration

The Silex Documentation has example configurations for Apache, nginx, IIS & Lighttpd.

Update

Download the latest source code.

If you are updating to a newer version follow these steps.

Update dependencies:

# php composer.phar update

Update the database schema:

# app/console orm:schema-tool:update --force

Translations

Currently:

  • English (en)
  • Spanish (es)
  • Esperanto (eo)
  • and German (de)

are supported by PWX. Please set locale according to your requirements in the configuration. I'm happy to accept pull requests for additional translations.

You can use a GET parameter when linking to PWX. I.e.

https://example.com?locale=es

This allows for one instance of PWX dynamically being accessed in different languages.

Themes

PWX supports all Bootswatch themes. You can adjust the appearance of the application to your liking by a simple config switch.

Developers

PWX uses the Robo task runner. After making changes to the JS or CSS files run:

# vendor/bin/robo build

to minify and concatenate the files.

Alternatively you can run:

# vendor/bin/robo watch

while developing which will automatically generate the minified and concatenated assets when style or script files are changed.

To run the integrated test suite please run:

# vendor/bin/phpunit

API

PWX offers a simple API with the following endpoints:

Save an entry

Request Methoud: POST
End Point: https://example.com/api
Params:
    userName: string (default: "")
    password: string (reqired)
    comment: string (default: "")
    expires: int (time in s from when the entry will expire, min: 1h, max: 30days, default: 3600)
    oneTimeView: bool (whether or not the entry will be deleted after viewing it once, default: false)
Response:
    hash string (id of entry)

Retrieve an entry

Request Methoud: GET
End Point: https://example.com/api/[hash]
Params:
    n/a
Response:
    hash: string
    userName: string
    password: string
    comment: string

Delete an entry

Request Methoud: DELETE
End Point: https://example.com/api/[hash]
Params:
    n/a
Response:
    n/a

Warning

You will be responsible to secure your environment. The author of this software takes no responsiblity for any damage as a result of using this software.

pwx's People

Contributors

michaelthessel avatar rabbl avatar joseluis avatar k4ved 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.