Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
Lete114 committed Jul 11, 2023
0 parents commit 52b30de
Show file tree
Hide file tree
Showing 22 changed files with 1,101 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install pnpm
run: npm install -g pnpm

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
- run: pnpm install
- run: pnpm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 UnPwd <https://github.com/unpwd>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<h2 align="center">Unified Password</h2>

<div align="center">
<img width="300" alt="Generate unique passwords for different platforms with just one common password" src="public/Logo.png">
</div>

## Security Concern

Some websites are so abominable that they actually store users' passwords in clear text, so if the database is attacked or compromised, your passwords and other information will be exposed!

## How to prevent it?

We can encrypt our password before registering for an account, enter the encrypted password into the registration list and then submit the registration application, which will solve the problem of the website storing your real password, and the next time you log in, you can use the encrypted password to log in.

Although this can prevent the leakage of plaintext passwords, if each site to do so, when one of the site data leakage, hackers can also apply the encrypted password to other sites to log in to steal your wealth on other sites!

So can we generate different encrypted passwords for each website? How to do it?

Suppose your password is `123456` and you need to register a website called `ABC`, then I can use `123456ABC` for encryption, and there is another `DEF` website use `123456DEF` for encryption, and so on we can have endless encrypted passwords, even if the data of `ABC` website is compromised. Even if the `ABC` site is compromised, all the hacker gets is an encrypted string, which doesn't work for `DEF`.

Of course, this is just a simple example, you should not do that when you really use it, it is better to add some other characters to modify, such as your birthday, initials, your favorite people, objects, landscapes, food, animal initials, pet's name and so on.

`UnPwd` is doing just that, encrypting it for you. `UnPwd` doesn't store your passwords, everything is done in your device, it doesn't connect to the Internet, and it doesn't send any requests to encrypt your passwords offline!

For example after encryption with `UnPwd`.
- `ABC_Panda` => `9d75c6681599c9e425a8c746`
- `ABC_Hamburger` => `7e01288b2e8cfad74454be2d`
- `Panda_ABC` => `7f6da876fd1e6d998ab4dfc2`
- `Panda>ABC` => `6c0df4522d75fc6c9aaf92d0`
- `ABC.Panda` => `5f11445d77d5cda23879d74a`
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UnPwd | Unified Password</title>
<meta name="description" content="Generate unique passwords for different platforms with just one common password"/>
</head>
<body>
<div id="app"></div><script type="module" src="/src/main.js"></script>
</body>
</html>
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "unpwd",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@types/argon2-browser": "^1.18.1",
"svelte": "^4.0.3",
"vite": "^4.4.0",
"vite-plugin-css-injected-by-js": "^3.2.0"
},
"dependencies": {
"argon2-browser": "^1.18.0"
}
}
Loading

0 comments on commit 52b30de

Please sign in to comment.