区块链常用加密方法的原理是什么

资讯 2024-06-28 阅读:55 评论:0
发布时间:2022-01-19 09:46:11 来源:亿速云...
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
发布时间:2022-01-19 09:46:11 来源:亿速云 阅读:182 作者:iii 栏目:互联网科技

本文小编为大家详细介绍“区块链常用加密方法的原理是什么”,内容详细,步骤清晰,细节处理妥当,希望这篇“区块链常用加密方法的原理是什么”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。

区块链常用加密方法的原理是什么

What is the rationale for the usual encryption of block chains

原理:加密和解密数据使用同一个密钥,适合对大量数据进行加解密

Rationale: Encryption and declassification data use the same key and are suitable for decrypting large amounts of data

安全性:关键是密钥的保存方式,加密或是解密的任何一方泄漏密钥,都会导致信息泄漏

Security : The key is saved, the key is leaked by either encrypted or decrypted

代表算法:DES、3DES、Blowfish、IDEA、RC4、RC5、RC6、AES等

for algorithms : DES, 3DES, Blowfish, IDEA, RC4, RC5, RC6, AES, etc.

对称密码常用的数学运算:

symmetrical algorithms commonly used for passwords:

**移位和循环移位  **

**Modition and circulation

移位就是将一段数码按照规定的位数整体性地左移或右移。循环右移就是当右移时,把数码的最后的位移到数码的最前头,循环左移正相反。例如,对十进制数码12345678循环右移1位(十进制位)的结果为81234567,而循环左移1位的结果则为23456781。

The move is to move a number to the left or to the right as a whole according to the prescribed number of digits. The right move in the circle is to move the last position of the number to the front of the number when it moves right, and the left move in the reverse direction. For example, the right move in the decimal number of 12345678 is 81234567, while the left move in the circle is 23456781.

**置换  **

**Replace & nbsp; & nbsp;**

就是将数码中的某一位的值根据置换表的规定,用另一位代替。它不像移位操作那样整齐有序,看上去杂乱无章。这正是加密所需,被经常应用。

That's to replace a value in a number with another, based on the replacement table. It's not as neat as the move, it looks messy. That's what encryption requires, and it's often applied.

**扩展  **

**Extensions & nbsp; & nbsp;**

就是将一段数码扩展成比原来位数更长的数码。扩展方法有多种,例如,可以用置换的方法,以扩展置换表来规定扩展后的数码每一位的替代值。

It is to expand a number into a number that is longer than the original number. There are a number of ways to expand it, for example, by replacing it with a table that defines the replacement value for each of the expanded numbers.

**压缩  **

** Compressed & nbsp; & nbsp;**

就是将一段数码压缩成比原来位数更短的数码。压缩方法有多种,例如,也可以用置换的方法,以表来规定压缩后的数码每一位的替代值。

It is to compress a number into a number that is shorter than the original number. There are a number of methods of compression, for example, replacement methods that can be used to define the replacement value of each compressed number in a table.

**异或  **

** Different or & nbsp; & nbsp;**

这是一种二进制布尔代数运算。异或的数学符号为⊕ ,它的运算法则如下:

This is a binary Boolean Algebra operation. A different or mathematical symbol is a titanium, and its algorithm is as follows:

1⊕1=0 0⊕0=0 1⊕0=1 0⊕1=1

也可以简单地理解为,参与异或运算的两数位如相等,则结果为0,不等则为1。

It can also simply be understood that if the two digits involved are equal, the result will be zero, which will vary from one.

**迭代  **

**External & nbsp; & nbsp;**

迭代就是多次重复相同的运算,这在密码算法中经常使用,以使得形成的密文更加难以破解。

Interlacing is the repeated repetition of the same calculations, which is often used in cryptographic algorithms to make it more difficult to decipher messages.

区块链常用加密方法的原理是什么

What is the rationale for the usual encryption of block chains

原理:

Rationale:

非对称加密算法需要两个密钥:公开密钥(publickey)和私有密钥(privatekey)。公开密钥与私有密钥是一对,如果用公开密钥对数据进行加密,只有用对应的私有密钥才能解密;如果用私有密钥对数据进行加密,那么只有用对应的公开密钥才能解密

Asymmetric cryptography requires two keys: a public key (publickey) and a private key (privatekey). A public key is a pair of private keys, and if a public key is used to encrypt data, only the corresponding private key is used to decrypt it; if a private key is used to encrypt the data, then only the corresponding public key is used to decrypt it.

**安全性:**公钥可以被任何人知道,但是私钥被泄漏就会导致信息泄漏

**Safety: **Pkeys can be known by anyone, but leaking a private key leads to a leak of information.

应用场景:

Application scene:

数字签名,私钥拥有者对信息进行加密,接受者使用公钥解密成功,就可以确定发送者的身份

A digital signature, a private key owner encrypts the information, and the recipient uses a public key to decrypt the sender's identity.

密钥长度:

key length:

通常是1024,2048等。密钥长度增长一倍,公钥操作所需时间增加约4倍,私钥操作所需时间增加约8倍,公私钥生成时间约增长16倍

Usually 1024, 2048, etc.. The key length has doubled, the time it takes to operate a public key has increased about fourfold, the time it takes to operate a private key has increased about eightfold, and the time it takes to generate a public key is about 16 times.

加密的明文长度:

Encryption length:

加密的明文长度不能超过RSA密钥的长度减去11byte,比如密钥长度是1024位的,1024位=1024bit=128byte,128-11=117byte,所以明文长度不能超过117byte,如果长度超过该值将会抛出异常。加密后密文的长度为密钥的长度,如密钥长度为1024bit(128Byte),最后生成的密文固定为 1024bit(128Byte)

The explicit length of encryption cannot exceed the length of RSA keys minus 11byte, e.g. the length of the key is 1024, 1024 = 1024bit = 128byte, 128-11 = 117byte, so the explicit length cannot exceed 117 byte, and if the length exceeds that value, it will be abnormal. The length of the message after encryption is the length of the key, e.g. the length of the key is 1024bit (128Byte), and the resulting message is fixed at 1024bit (128Byte).

**代表算法:**DES、3DES、Blowfish、IDEA、RC4、RC5、RC6、AES等

** Representing algorithms: **DES, 3DES, Blowfish, IDA, RC4, RC5, RC6, AES, etc.

区块链常用加密方法的原理是什么

 what is the rationale for the usual encryption method for block chains

原理:

Rationale:

采用某种散列函数,输入不同长度的明文,得到相同的长度的密文,明文的微小变化都能引起密文的巨大变化。其实哈希散列算法不算是真正的加密,而是生成对应明文的指纹信息,用来校验数据的完整性。

Using some kind of hash function, you enter a specific text for different lengths, you get a code for the same length, and a simple change in the code can cause a huge change in the code. In fact, the Hashish algorithm is not really encrypted, but rather generates the corresponding print information, which is used to verify the integrity of the data.

**安全性:**不能通过密文反推明文,通常作为数据的完整性校验

**Safety: ** Can't be inverted through classified text, usually as a data integrity check

**应用场景1:**生成信息摘要,验证信息的完整性

**Application scene 1: ** Generate information summaries to validate information integrity

**应用场景2:**不用明文存储用户密码,比如使用md5(md5(用户密码)+salt)来存储密码和验证密码,防止攻击者用彩虹表攻击

**Application scene 2:** No explicit storage of user passwords, such as md5(md5(user password)+salt) to store passwords and authenticate passwords to prevent attackers from using rainbow forms

**代表算法:**MD2、MD4、MD5、PANAMA、SHA-0、SHA-1、SHA-256、SHA-512等

** Representing algorithms: **MD2, MD4, MD5, PANAMA, SHA-0, SHA-1, SHA-256, SHA-512, etc.

区块链常用加密方法的原理是什么

What is the rationale for the usual encryption of block chains

读到这里,这篇“区块链常用加密方法的原理是什么”文章已经介绍完毕,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注亿速云行业资讯频道。

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 支付領域投下震撼彈!美國數位銀行Chime疑與GuardPay 神盾支付合作!

    支付領域投下震撼彈!美國數位銀行Chime疑與GuardPay 神盾支付合作!
    2020年,新冠肺炎(COVID-19)疫情加速數位貨幣進展。例如:2019年4月,國際清算銀行(BIS)的調查顯示,在全球66家中央銀行中,沒有一家計畫發行跨境支付的數位貨幣。惟到了2020年10月,BIS支付委員會主席康利夫(Jon Cunliffe)指出,肺炎疫情拉高民眾對無現金支付的需求,迫使各國加快數位貨幣的研發進程日本與韓國於2021年進入數位貨幣試驗階段。直到2019年12月,美國聯邦準備理事會(Fed)都尚無數位貨幣規劃,惟到了2020年2月,Fed已開始研擬...
  • 区块链:交易系统开发指南

    区块链:交易系统开发指南
    播报编辑《区块链:交易系统开发指南》使用通俗易懂的语言,从技术的角度详细介绍了区块链交易系统应有的功能架构及工作原理,让人们能够张开双臂轻松地拥抱区块链技术,享受区块链交易系统带来的惊喜与成就感。《区块链:交易系统开发指南》共分 7 章,第 1~2 章主要介绍区块链及数字货币的基本概念,以及各种公有链的 API 接口;第3~5 章主要介绍区块链交易系统的分类架构及功能; 6 章主要介绍区块链交易系统面临的问题及演进方向;第 7 章对全书做了总结。《区块链:交易系统开发指南》是...
  • 5.14加密货币价格:BTC突破6.2万美元以太坊和山寨币反映市场情绪

    5.14加密货币价格:BTC突破6.2万美元以太坊和山寨币反映市场情绪
    今天,随着比特币(BTC)的价格突破62 000美元的门槛,顶级加密货币的价格反弹了。 此外,以铁大幅上涨,维持在2 900美元的水平。 此外,其他顶尖山硬币,如索拉纳(SOL )、XRP、卡达诺(ADA )也大幅上涨。    今天密钥加密货币价格 1. 比特币价格    在5月14日星期二撰写本文时,比特币价格上升了2.57%,达到62 487.50美元。 另一方面,在过去24小时内,交易量从65.26 % 急剧上升至277亿美元。 与此同时,加密货币的市场价值为...
  • OKEx回应用户质疑:合约交易非期货 平台无机器人

    OKEx回应用户质疑:合约交易非期货 平台无机器人
       热点点 自选股份 数据中心 数据中心 研究和资料中心 资金流动 模拟交易 客户客户 具体来说,OKEx回答用户的问题:合同交易不是期货,平台不是机器人。 金融同步化,3月22日。    昨天下午,OKEx公司就维护先前用户线下的权利问题对同步财务公司作出了回应,指出OKEx公司提供的合同交易不是期货交易,在旗下的业务中没有正式的机器人。 同时,OKEX称,它不会以非法为由对任何投资损失索赔作出答复。 答复全文如下: 同步你的财务! 近日来,...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
标签列表