Hill 密码加密/解密源代码 Java(2 x 2 矩阵密钥)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22890745/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 18:44:57  来源:igfitidea点击:

Hill Cipher Encryption / Decryption Source Code Java (2 x 2 matrix key)

javaalgorithmencryptionsample

提问by rizqieroway

I have a project to make an encryption and decryption for string input in java. I've been stucked for a week doing some research in it. I really appreciate if you have sample source code or function methodfor Hill cipher in javathat I may use in my project. I really need your help ... hope someone out there could be my savior. Thanks.

我有一个项目来对java中的字符串输入进行加密和解密。我已经被困了一个星期来做一些研究。如果您有我可以在我的项目中使用的Java 希尔密码示例源代码或函数方法,我真的很感激。我真的需要你的帮助……希望有人能成为我的救星。谢谢。

采纳答案by Priyabrata

http://pjcodingcenter.blogspot.in/2013/03/implementing-hill-cipher-substitution.html

http://pjcodingcenter.blogspot.in/2013/03/implementing-hill-cipher-substitution.html

Another simplistic one : Hill Cipher

另一个简单的: 希尔密码

Google got me this!! See if it works..

谷歌给了我这个!!看看能不能用。。

回答by K.J.

For encryption take a look at this git repo. The project at the link provided does handle 2x2 decryption.

对于加密,请查看此 git repo。提供的链接中的项目确实处理 2x2 解密。