Coder Social home page Coder Social logo

bounce's People

Contributors

gwbasic avatar

Watchers

 avatar  avatar

bounce's Issues

Use a logger

Instead of println!, use a dedicated logger.

The logger should have warn, info, debug, error, and fatal levels

Create a mode to generate keys

There should be a mode to generate public and private keys.

For example, "bounce keys" should generate both public and private keys, ideally encoded using base64. Example output:

Bounce
Generating keys
Public key: gesTREYngfdeEREWT675437
Private key: jytr7654HGSHT245hfdgh

Don't reuse the nonce

In the current implementation, the nonce is continually reused for each encrypted packet.

Instead, find a PRNG (psuedo random number generator) that always generates the same output from the same seed. Determine the seed at authentication, and use this to generate new nonces for each packet.

Note that some PRNGs that accept seeds may change on a platform-specific basis; or via software updates.

See if there is a macro for auto-returning errors

A common Rust pattern is matching on an error, and then returning the error.

See if there is some kind of macro that will return the error. (Similar to letting exceptions bubble out without handling them explicitly.)

Authenticate the bounce client

The bounce client should be authenticated using a public/private key mechanism.

  • The server should know the client's public key. (Via a command-line argument or environment variable.)
  • The client should know its private key. (Via a command-line argument or environment variable.)
  • Upon connection, the server should encrypt a success message (and something random)

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.