Skip to content

ukasz123/pass-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pass-it

Pass your payload securely between two clients via remote server

This project aims to prepare server for passing payload between two clients with confirmation receiver's credentials by sender.

Below is a ideation of the message flow:

How to build

  1. Install Go 1.20 or higher
  2. Install templ go install github.com/a-h/templ/cmd/templ@latest
  3. Run templ generate in project root directory template go files.

How to run

  1. Run server from server/pass-it.go file.
  2. To simulate mobile client, run tools/crypto.go.
  3. It first generates key pair and prints encoded public key to be used as key parameter in Store request.
  4. Then it waits for browser session id sent by server in Fetch stream initial event to be entered by user in console.
  5. Then it generates signature for Confirm request.
  6. Open http://localhost:8080 to receive secret.

Known issues:

  • Sending confirmation with wrong signature will purge the key from cache and client cannot retry operation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published