Code Monkey home page Code Monkey logo

secret's Introduction


Secret will protect you when sharing information, you can use it to send text without worrying about hijacked. For more, refer to Introduction.

How to use

  • You can visit the sample site directly.
  • Or run npx secret in the command-line.

LICENSE

MIT

secret's People

Contributors

unix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

secret's Issues

Feature Request:支持钱包加密和解密消息

背景

  • Alice 希望让 Bob 使用私钥签名特定信息,以便 Alice 验证 Bob 确认授权特定信息内容。
  • Alice 希望给 Bob 传递密码,但是不信任社交渠道,所以希望使用 Bob 的公钥签名「密码」给他,然后 Bob 使用公钥对应的私钥解密。

思路

借助 Crypto Wallet 常见的私钥功能,不必另外维护管理私钥,即可让区块链用户可以在钱包中完成加密和解密消息工作。

signMessage
参考 ether.js 的 Signing 方法,我们可以考虑使用 signMessage or signTypeData 让 Bob 签署特定信息,以便 Alice 验证。

参考:The Magic of Digital Signatures on Ethereum

非对称加密
常见 RSA 签名处理,但我不确定是否有更好的方法。

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.