GithubHelp home page GithubHelp logo

otpcloud's People

Contributors

bestony avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

otpcloud's Issues

数据加密方案

关键概念

主密码:用户自行设定的密码,将会用于数据的加密
openid:用户的唯一身份识别标识

用户身份加密方案

  1. 用户使用 code 登录,获取 openid
  2. 对 openid 进行 sha1 运算,得到的结果作为用户的 primary key

数据加密方案

  1. 数据在本地使用 aes 进行加密,加密密钥为 自行设定的主密码

  2. 云端仅存储数据,无法对具体的数据进行处理。

解释

1. 为什么 openid 还需要 sha1

避免通过 openid 定位到 user

2. openid 会作为主密码么?

不会,主密码需要用户设定。

3. 如何解密数据?

会单独提供一个纯粹的前端页面用来进行数据解密。

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.