Giter Club home page Giter Club logo

ekeymgr's People

Contributors

ray45422 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ekeymgr's Issues

鍵登録モードの追加

ウェブインターフェースからリクエストを送ると既存の読取機器を使って新規に鍵を登録できるようにする
登録するユーザIDをekeymgrサーバーに伝える
状態に応じて適当なレスポンスを返す(成功、登録できない状態、登録を受け付けてないなどのレスポンスを用意する)

DBとの通信のAPI化

DBとの通信をREST APIに置き換える
必要な機能

  • 認証
  • ユーザーの取得
  • 鍵の取得
  • 部屋の取得
  • ログの取得
  • グループ化

変数の値が書き換えられる

部屋名を格納する変数roomName(https://github.com/ray45422/ekeymgr/blob/dev/source/userdaemon.d#L69)
はコンストラクタでのみ設定から読み出して格納されている(https://github.com/ray45422/ekeymgr/blob/dev/source/userdaemon.d#L19)
しかし表示の更新時(https://github.com/ray45422/ekeymgr/blob/dev/source/userdaemon.d#L129)
に違う値に書き換えられていることが時々発生する
書き換えられる値は認証に用いるSQL文(https://github.com/ray45422/ekeymgr/blob/dev/source/auth.d)
の一部であったり、バイナリデータだったりと様々

情報の暗号化

現在の状態では保存、通信全てに置いて平文でやり取りしている。
データベースにはハッシュ化して保存。
クライアントとの通信時には暗号化を行う。
その他必要な部分の暗号化を行う。

ブロッキング追加

鍵の動作中などに鍵の操作リクエストなどを受け付けないようにする

通信のフォーマット

現在の通信でやり取りするメッセージはかなり適当なのでJSON形式に統一しようと思う。

InvalidMemoryOperationError

custom-branchで発生
このブランチだけに実装したスイッチが有効になるまで鍵の操作をできなくした処理が原因

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.