c ++加密/解密 [英] c++ encrypt / decrypt

查看:93
本文介绍了c ++加密/解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使c ++程序输入一些纯文本并实现一种加密算法输入已实现算法的参数,如密钥,密钥长度等。显示加密文本(密文)并输入一些加密文本(密文)解密文本并输入已实现算法的参数

How can i make c++ program to input some plain text and implement a type of encryption algorithms input the parameters of the Implemented algorithm such as the Key, Length of the key etc.display the encrypted text (cipher text)and input some encrypted text (cipher text)to decrypt the text and input the parameters of the implemented algorithm

推荐答案

与您执行任何项目的方式相同:准确定义您要执行的操作(输入法,加密算法,输出法等)然后围绕它设计你的代码。

然后实现设计,测试并循环回到设计或实现阶段,直到它通过。 br $> b $ b

但是我们不会为你做这件事。

毕竟,这是你的功课,不是我们的。
The same way you do any project: define exactly what you want to do (input method, encryption algorithm, output method and so on) and then design you code around that.
Then implement the design, test and loop back to either the design or implementation stages until it passes.

But we will not do it for you.
It is your homework, after all, not ours.

您有几个选项(最难以最简单):

  • 创建算法并对其进行编码。
  • 实施现有算法。
  • 获取existi的源代码实现(有几种可用),并根据您的需要使用它。
  • 使用提供加密/解密功能的现有库。
You have several options (hardest to easiest):
  • Invent and code the algorithm.
  • Implement an existing algorithm.
  • Get the source code of an existing implementation (there are several available), and use it according to your needs.
  • Use an existing library providing encryption/decryption facilities.


这篇关于c ++加密/解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆