Giter Site home page Giter Site logo

关于RSA加密的问题 about mango HOT 3 CLOSED

ypliang19 avatar ypliang19 commented on September 26, 2024
关于RSA加密的问题

from mango.

Comments (3)

YPLiang19 avatar YPLiang19 commented on September 26, 2024

公钥顾名思义是就是所有人都可以获取的key,一般用来做签名校验,如果用公钥进行解密那所有的人都可以解密了,显然我们只希望我们自己的App来解密,而不希望其他获取到密文的人来解密。而私钥一般为私有,用来解密,即只有特定人才能解密。

from mango.

pepsikirk avatar pepsikirk commented on September 26, 2024

公钥顾名思义是就是所有人都可以获取的key,一般用来做签名校验,如果用公钥进行解密那所有的人都可以解密了,显然我们只希望我们自己的App来解密,而不希望其他获取到密文的人来解密。而私钥一般为私有,用来解密,即只有特定人才能解密。

目前正是使用公钥加密,那么公钥就是私有的,而将私钥放到客户端,这代表随便砸壳以后就可以获取到私钥,所以私钥才是真正公开的。
所以我才说需要使用私钥加密,而公钥放到客户端,用来解密。在这样的场景下,加密的作用是保证文件在传输过程中没有被篡改和伪造。

from mango.

YPLiang19 avatar YPLiang19 commented on September 26, 2024

RAS主要应用场景:

  1. 加密和解密:公钥加密,私钥解密
  2. 签名和验证:私钥签名,公钥验证
    MangoFix客户端的角色为私钥解密。

from mango.

Related Issues (20)

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.