Skip to content

harvmaster/api.hashpass-v3

Repository files navigation

api.hashpass-v3

A stateless password generator.

Whats the api for

The api provides a way to sync the services that have a password generated with the frontend across devices. All of the password generation is handled on the client side using sha256.

sha256(`${userSecret} + ${serviceToGeneratePasswordFor}`)

This method means the backend can never access any of your passwords. The information stored on the backend cannot be used to crack into any of your accounts

Using the api

Creating a user

// POST /user
body:
{
  username: string
  password: string // the frontend sends a generated password using a similar method as mentioned above
}

Login

// POST /user/login
body:
{
  username: string
  password: string
}

refresh access token

// POST /user/refresh
body:
{
  refresh_token: string
}

Get User information

// GET /user
header:
{
  Authorization: bearer access_token
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published