[不费力]我有一个文本框,加密每个字符进入文本框 [英] [No effort] I have a text box ,encrypt each charecter enter into the text box
本文介绍了[不费力]我有一个文本框,加密每个字符进入文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个文本框..并且我将输入一个字母说A
并且作为回报应该有一个消息框说加密值
如何加密Javascript中的一个字母...... ???
I have a text box .. and in that i will enter a letter say"A"
and in return there should be a message box saying the encrypted value
how to encrypt a letter in Javascript...???
推荐答案
将加密字符串加入Javascript到你的友好邻居谷歌我得到了很多关于如何做到这一点的结果。我花了大约10秒钟。
然后我查看了一些结果,这是你学习如何做事的方式。
我对此进行了调查:
使用全貌链接 [ ^ ]
我强烈建议你去阅读它。
我还建议你在寻求帮助之前学习如何谷歌主题,另外阅读本网站上的常见问题解答关于如何提问。
By putting "Encrypt string in Javascript" into your friendly neighbourhood Google I got Loads of results on how to do this. It took me all of about 10 seconds.
Then I looked at some of the results, it's how you learn how to do things.
I cam across this:
A use full looking link[^]
I highly suggest you go and read it.
I also suggest you learn how to google topics before asking for help, in addition read the FAQ on this site on how to ask questions.
只需使用 Google ,您就可以找到许多可用的加密库 [ ^ ]。
但是,您应该加密整个用户输入,而不是加密char(因为大多数加密算法使用块密码,请参阅密码学概述 [ ^ ])。
Just using Google you might find many available encryption libraries[^].
However, you should encrypt the whole user input, instead of a char at time (as most of encryption algorithms use block cyphers, see "An Overview of Cryptography"[^]).
这篇关于[不费力]我有一个文本框,加密每个字符进入文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文