从另外两个代码创建新代码! [英] create new code from two other codes !

查看:74
本文介绍了从另外两个代码创建新代码!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我有一个包含三个文本框的winform:
代码1:[...]
code2:[...]
code3:[...]

用户具有code1和code2,我想同时使用code1和code2生成一个代码(code3).
我应该使用哪种算法?它应该功能强大并且不容易被黑客入侵!
我应该在网络上搜索什么问题!?
它与哈希有关吗?如果可以的话,我该如何学习?

对不起,我的英语不好.

hi friends,
I have a winform that contains three textboxes:
code1 : [ ... ]
code2 : [ ... ]
code3 : [ ... ]

Users have the code1 and code2, i want to generate a code ( code3 ) by using both code1 and code2.
what algorithm should i use ? it should be powerful and it shouldn''t be easy to hack !
what issue should i search in the web !?
is it related to hashing !? if so how could i learn it?

excuse my bad english.
thanks in advance.

推荐答案

简单:对两个代码进行XOR.

缺点:
-知道其中两个代码的人都可以轻松地处理第三个代码.
-代码长度必须相等.或者您必须延长较短的那个.


组合需要满足哪些要求?使用改善问题 [
Simple: XOR both codes.

Drawbacks:
- Whoever knows two of the codes can esily process the third.
- Codes must equal in length. Or you have to extend the shorter one.


What requirements does the combination need to fit? Improve your question on this using the Improve question[^] link.


这篇关于从另外两个代码创建新代码!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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