aca是什么意思| 预热是什么意思| 肺炎为什么要7到10天才能好| 猛吸气胸口疼什么原因| 检查肠道挂什么科| 绝经是什么意思| 吃brunch是什么意思啊| 什么叫肾阳虚肾阴虚| 右眼一直跳是因为什么原因| 心慌吃什么药能缓解| 降钙素原是什么意思| 身体年龄是什么意思| 足贴为什么变黑出油| 乩童是什么意思| 夏天为什么会感冒| 花甲炒什么配菜好吃| carrots是什么意思| 分心念什么| 子宫小是什么原因引起的| 服兵役是什么意思| 什么是甲亢| 衤字旁与什么有关| 海豚吃什么食物| 什么树林| 人次什么意思| 洗涤是什么意思| 郑成功是什么朝代的| 静脉曲张看什么科室| 永垂不朽的垂是什么意思| 木危读什么| 风云人物什么意思| 牛排用什么油煎好吃| 五六月份是什么星座| 生辰八字五行缺什么| 什么的太空| 心经是什么意思| rsl是什么意思| 垂体分泌什么激素| mfd是什么意思| 宫颈炎盆腔炎吃什么药效果最好| 免疫力低吃什么补| 死水是什么| 蟑螂的天敌是什么| 正月初九是什么星座| 念五行属什么| 早上打喷嚏是什么预兆| 妹汁是什么| 甜菜根在中国叫什么| 脑梗有什么后遗症| 八月生日什么星座| 午饭吃什么| 世界上最难写的字是什么| 一直发低烧是什么原因| 观音菩萨原名叫什么名| 脾胃虚寒吃什么| 杨梅不能和什么一起吃| 脚发热是什么病| 手术后吃什么水果| 素海参是什么做的| 梦见被狗咬是什么意思| 目瞪口呆是什么生肖| 愤是什么生肖| 什么叫平仓| 事无巨细是什么意思| 小人得志是什么意思| 睡觉起来头晕什么原因| 破财消灾什么意思| 缺陷的陷是什么意思| 出冷汗是什么原因| 吃什么补白蛋白最快最好| 葛根粉有什么作用| 阳痿挂什么科| 桑叶泡水喝有什么功效和作用| 经常说梦话是什么原因| 老被蚊子咬是什么原因| 站着说话不腰疼什么意思| 尿胆素1十是什么意思| 子宫切除对女人有什么影响| 撕票是什么意思| 强肉弱食是什么意思| 喝什么茶可以降血糖| 养肝吃什么好| 感冒咳嗽一直不好是什么原因| 成语什么争鸣| 补钙吃什么食物最好最快中老年| 胃疼是什么病| 什么是碳水| 疱疹吃什么药好得快| 恃势之刑是什么意思| 眼底充血是什么原因| 脑疝是什么意思| 肠道功能紊乱吃什么药| 胸闷心慌是什么病| 蜂王浆什么时间吃最好| 木鱼花是什么做的| 夏令时什么意思| 幽门螺杆菌是什么病| 手足口挂什么科| 什么是记忆棉| 孕妇吃什么水果好| 腋下出汗多是什么原因| 青榄配什么煲汤止咳做法| 脂肪瘤长什么样| 白带像豆腐渣用什么药| 干咳吃什么药好| 狗狗吐黄水是什么原因| 肚子疼呕吐是什么原因| 过敏应该挂什么科| 为什么尿频| 小猫吃什么食物| 脂肪肝吃什么药效果好| 脑梗有什么后遗症| 玫瑰痤疮吃什么药| 今年什么时候立秋| 人彘是什么| 美容美体是干什么的| 双肺局限性气肿是什么病| 二月初十是什么星座| 科颜氏属于什么档次| 反乌托邦是什么意思| 非私营单位是什么| 621什么星座| 请佛像回家有什么讲究| 太阳像什么的比喻句| 垫脚石是什么意思| 小狗什么时候可以洗澡| 小孩子手脚脱皮是什么原因| 引力是什么| 三周年祭奠有什么讲究| 发烧想吐是什么原因| 什么时候入梅| 湿气重是什么原因| 肝损伤吃什么药| 幽门螺杆菌阳性什么意思| 699是什么意思| dle是什么意思| 脚疼是什么原因引起的| 天蝎座和什么星座最配| 孕妇头晕是什么原因| 出家人不打诳语是什么意思| 上不下要念什么| 三油甘脂是什么| 鼻塞是什么原因| 什么鱼刺少| 工作坊是什么意思| 什么人不适合吃胃复春| 一个口一个犬读什么| 1995属什么生肖| 舌尖发麻是什么原因引起的| 气滞血瘀吃什么食物好| 一什么力量| 先入为主是什么意思| aed是什么| 啵啵是什么意思| 黑枣是什么枣| 上善若水下一句是什么| 清明节的习俗有什么| 备胎是什么意思| 说什么才好| 梦见别人开车翻车是什么预兆| 油光满面是什么意思| 经常生病是什么原因| fb是什么意思| mr是什么检查项目| 李自成为什么会失败| 嘴唇干是什么原因引起的| 中间人是什么意思| 卡介苗是预防什么的| 肽对人体有什么好处| 砚是什么东西| 什么止痛药最快止痛| 直视是什么意思| 什么什么鼎沸| 内退是什么意思| 龟皮痒用什么药膏| 雪碧喝多了有什么危害| 催乳素偏高有什么影响| 状元红又叫什么荔枝| 什么小说最好看| 红血丝用什么护肤品修复比较好| 山药煲汤搭配什么好| 青金石蓝是什么颜色| 女性肾火旺有什么症状| 发什么什么大| 避孕套是什么| 燃面为什么叫燃面| 癞子是什么意思| 安厝是什么意思| 01年属什么| tp什么意思| 怀孕白细胞高是什么原因| 羟氯喹是什么药| 40年属什么| 胃炎吃什么水果| 什么情况下吃速效救心丸| 脱毛膏的原理是什么| 静脉曲张吃什么食物好| 月亮为什么会有圆缺变化| 苦海无涯回头是岸是什么意思| attach什么意思| 奔走相告是什么意思| 阿玛施属于什么档次| 斐乐是什么档次| 痈疡是什么意思| 干冰是什么| 马标志的车是什么牌子| 胃酸有什么办法缓解| 避孕套什么牌子的好| 什么是占有欲| 拔完智齿第三天可以吃什么| 肾阳虚的表现是什么| 民营经济属于什么经济| 牙齿矫正挂什么科| 头上汗多是什么原因| 送产妇什么礼物最合适| 省略号的作用是什么| vaude是什么品牌| 焖子是什么做的| 多子多福是什么意思| 什么水用不完| 一什么杯子| 3加2是什么意思| 黄体期出血是什么原因| 头汗多是什么原因引起的| 痛风吃什么肉最好| 月经后期是什么意思| 煤气罐在什么情况下会爆炸| 尿盐结晶是什么意思| 冲任失调是什么意思| 补休是什么意思| 这是什么电影| 女性查hpv挂什么科| 吃什么长胖| 69是什么姿势| 免疫球蛋白是什么| 甲功四项是什么检查项目| 来月经头疼吃什么药| 毛刺是什么意思| guou是什么牌子的手表| 乳腺4a是什么意思| 五行中金代表什么| 忠于自己是什么意思| 高铁与动车有什么区别| 什么是教育| at什么意思| 夜尿频多吃什么药效果好| 手电筒的金属外壳相当于电路中的什么| 拉肚子发热是什么情况| 皮蛋为什么能治口腔溃疡| 去湿气吃什么最好| 心塞是什么意思| 肾结石可以吃什么水果| ab型rh阳性是什么意思| 全品类是什么意思| 平时血压高突然变低什么原因| 膳食纤维是什么| 血液粘稠会有什么症状| 九月一日什么节日| 时间是什么意思| 在水一方什么意思| 左手发麻什么原因| 出汗对身体有什么好处| reed是什么意思| 慢性胃炎吃什么药效果好| 百度Jump to content

上海老字号沈大成被曝后厨老鼠流窜 门店停业整改

From Wikipedia, the free encyclopedia
百度 原标题:香港政界:须制止独派勾结为害香港《文汇报》3月25日报道,包括香港前立法会议员刘慧卿、占中三丑之一戴耀廷、被DQ立法会议员资格的游蕙祯等港独分子在台北五独论坛上大放厥词,声称要建立反专制政治联盟,同时加强与外国的联系。

The Merkle–Hellman knapsack cryptosystem was one of the earliest public key cryptosystems. It was published by Ralph Merkle and Martin Hellman in 1978. A polynomial time attack was published by Adi Shamir in 1984. As a result, the cryptosystem is now considered insecure.[1]:?465? [2]:?190?

History

[edit]

The concept of public key cryptography was introduced by Whitfield Diffie and Martin Hellman in 1976.[3] At that time they proposed the general concept of a "trap-door one-way function", a function whose inverse is computationally infeasible to calculate without some secret "trap-door information"; but they had not yet found a practical example of such a function. Several specific public-key cryptosystems were then proposed by other researchers over the next few years, such as RSA in 1977 and Merkle-Hellman in 1978.[4]

Description

[edit]

Merkle–Hellman is a public key cryptosystem, meaning that two keys are used, a public key for encryption and a private key for decryption. It is based on the subset sum problem (a special case of the knapsack problem).[5] The problem is as follows: given a set of integers and an integer , find a subset of which sums to . In general, this problem is known to be NP-complete. However, if is superincreasing, meaning that each element of the set is greater than the sum of all the numbers in the set lesser than it, the problem is "easy" and solvable in polynomial time with a simple greedy algorithm.

In Merkle–Hellman, decrypting a message requires solving an apparently "hard" knapsack problem. The private key contains a superincreasing list of numbers , and the public key contains a non-superincreasing list of numbers , which is actually a "disguised" version of . The private key also contains some "trapdoor" information that can be used to transform a hard knapsack problem using into an easy knapsack problem using .

Unlike some other public key cryptosystems such as RSA, the two keys in Merkle-Hellman are not interchangeable; the private key cannot be used for encryption. Thus Merkle-Hellman is not directly usable for authentication by cryptographic signing, although Shamir published a variant that can be used for signing.[6]

Key generation

[edit]

1. Choose a block size . Integers up to bits in length can be encrypted with this key.

2. Choose a random superincreasing sequence of positive integers

The superincreasing requirement means that , for .

3. Choose a random integer such that

4. Choose a random integer such that (that is, and are coprime).

5. Calculate the sequence

where .

The public key is and the private key is .

Encryption

[edit]

Let be an -bit message consisting of bits , with the highest order bit. Select each for which is nonzero, and add them together. Equivalently, calculate

.

The ciphertext is .

Decryption

[edit]

To decrypt a ciphertext , we must find the subset of which sums to . We do this by transforming the problem into one of finding a subset of . That problem can be solved in polynomial time since is superincreasing.

1. Calculate the modular inverse of modulo using the Extended Euclidean algorithm. The inverse will exist since is coprime to .

The computation of is independent of the message, and can be done just once when the private key is generated.

2. Calculate

3. Solve the subset sum problem for using the superincreasing sequence , by the simple greedy algorithm described below. Let be the resulting list of indexes of the elements of which sum to . (That is, .)

4. Construct the message with a 1 in each bit position and a 0 in all other bit positions:

Solving the subset sum problem

[edit]

This simple greedy algorithm finds the subset of a superincreasing sequence which sums to , in polynomial time:

1. Initialize to an empty list.
2. Find the largest element in which is less than or equal to , say .
3. Subtract: .
4. Append to the list .
5. Remove from the superincreasing sequence
6. If is greater than zero, return to step 2.

Example

[edit]

Key generation

[edit]

Create a key to encrypt 8-bit numbers by creating a random superincreasing sequence of 8 values:

The sum of these is 706, so select a larger value for :

.

Choose to be coprime to :

.

Construct the public key by multiplying each element in by modulo :

Hence .

Encryption

[edit]

Let the 8-bit message be . We multiply each bit by the corresponding number in and add the results:

  0 * 295
+ 1 * 592
+ 1 * 301
+ 0 * 14
+ 0 * 28
+ 0 * 353
+ 0 * 120
+ 1 * 236
    = 1129

The ciphertext is 1129.

Decryption

[edit]

To decrypt 1129, first use the Extended Euclidean Algorithm to find the modular inverse of mod :

.

Compute .

Use the greedy algorithm to decompose 372 into a sum of values:

Thus , and the list of indexes is . The message can now be computed as

.

Cryptanalysis

[edit]

In 1984 Adi Shamir published an attack on the Merkle-Hellman cryptosystem which can decrypt encrypted messages in polynomial time without using the private key.[7] The attack analyzes the public key and searches for a pair of numbers and such that is a superincreasing sequence. The pair found by the attack may not be equal to in the private key, but like that pair it can be used to transform a hard knapsack problem using into an easy problem using a superincreasing sequence. The attack operates solely on the public key; no access to encrypted messages is necessary.

Shamir's attack on the Merkle-Hellman cryptosystem works in polynomial time even if the numbers in the public key are randomly shuffled, a step which is usually not included in the description of the cryptosystem, but can be helpful against some more primitive attacks.

References

[edit]
  1. ^ Schneier, Bruce (1996). Applied Cryptography. New York: John Wiley & Sons. ISBN 0-471-12845-7.
  2. ^ Stinson, Douglas R. (1995). Cryptography: Theory and Practice. Boca Raton: CRC Press. ISBN 0-8493-8521-0.
  3. ^ Whitfield Diffie; Martin Hellman (1976). "New directions in cryptography". IEEE Transactions on Information Theory. 22 (6): 644. CiteSeerX 10.1.1.37.9720. doi:10.1109/TIT.1976.1055638.
  4. ^ Merkle, Ralph; Hellman, Martin (1978). "Hiding information and signatures in trapdoor knapsacks". IEEE Transactions on Information Theory. 24 (5): 525–530. doi:10.1109/TIT.1978.1055927.
  5. ^ Cherowitzo, William (2025-08-06). "Merkle-Hellman Knapsack Cryptosystem". Math 5410 - Modern Cryptology. Retrieved 2025-08-06.
  6. ^ Shamir, Adi (July 1978). "A Fast Signature Scheme". MIT Laboratory for Computer Science Technical Memorandum. 79 (MIT/LCS/TM–107): 15240. Bibcode:1978STIN...7915240S.
  7. ^ Shamir, Adi (1984). "A polynomial-time algorithm for breaking the basic Merkle - Hellman cryptosystem". IEEE Transactions on Information Theory. 30 (5): 699–704. doi:10.1109/SFCS.1982.5.
八百里加急是什么意思 吃什么囊肿会消失 孤是什么意思 焦点是什么 接骨草长什么样
为什么叫川普 阴影是什么意思 幽门螺旋杆菌的症状是什么 饮片是什么意思 什么是孢子
吃什么减肚子上的赘肉最快 云雾茶属于什么茶 胡子发黄是什么原因 宝宝dha什么时候吃最好 10万个为什么
香肉是什么肉 屎忽鬼是什么意思 有机会是什么意思 每天早上起床头晕是什么原因 农历闰月有什么规律
绿松石是什么hcv9jop4ns5r.cn 三点水加个有字念什么hcv8jop4ns5r.cn 是什么为什么怎么办hcv8jop3ns9r.cn 89年属什么生肖hcv7jop9ns0r.cn 秘语是什么意思hcv9jop0ns6r.cn
teal是什么颜色hcv9jop1ns1r.cn 右肾错构瘤是什么病hcv7jop7ns2r.cn 外强中干什么意思helloaicloud.com 二尖瓣少量反流是什么意思hcv8jop5ns2r.cn 钾低是什么原因造成的hcv7jop9ns9r.cn
过敏性咳嗽有什么症状mmeoe.com 沉香有什么功效xjhesheng.com grader是什么意思hcv8jop6ns9r.cn 惊悉是什么意思hcv9jop4ns9r.cn 孕妇忌吃什么hcv9jop6ns6r.cn
心肌缺血吃什么药最好hcv9jop0ns5r.cn 正方体体积公式是什么hcv8jop3ns2r.cn 鼓刹和碟刹有什么区别hcv9jop2ns0r.cn 懒是什么生肖hcv8jop8ns6r.cn 黄柏胶囊主要治什么病wzqsfys.com
百度