Java
Implement a simple Feistel encryptor and decryptor
项目类别:计算机

Implement a simple Feistel encryptor and decryptor

Notes:

This can be implemented using a programming language of Java. Follow the same

procedure for below plaintexts, round functions and/or subkeys as stated under each part.

Part – A

a) Implement the encryptor for a Feistel network with the following parameters.

Plaintext: password

Number of Rounds: 2

b) Decrypt the resulting ciphertext and verify that you can obtain the original plaintext.

Part – B

a) Implement the encryptor for a Feistel network with the following parameters.

Number of Rounds & Subkeys: 2 rounds, K1

= 0xA56B, K2

= 0xEF23

b) Decrypt the resulting ciphertext and verify that you can obtain the original plaintext.

Part – C

a) Implement the encryptor for a Feistel network with the following parameters.

Plaintext: 1100101101011001

Round Function: defined as follows.

 First letter goes to the second place.

 Second letter goes to the third place.

 Third letter goes to the fourth place.

 Fourth letter comes to the first place.

Number of Rounds: 2

b) Decrypt the resulting ciphertext and verify that you can obtain the original plaintext.

留学ICU™️ 留学生辅助指导品牌
在线客服 7*24 全天为您提供咨询服务
咨询电话(全球): +86 17530857517
客服QQ:2405269519
微信咨询:zz-x2580
关于我们
微信订阅号
© 2012-2021 ABC网站 站点地图:Google Sitemap | 服务条款 | 隐私政策
提示:ABC网站所开展服务及提供的文稿基于客户所提供资料,客户可用于研究目的等方面,本机构不鼓励、不提倡任何学术欺诈行为。