我希望我的访问者复制加密文本,当他们粘贴任何其他地方而不是自动解密? [英] I want that my visitors copy an encryped text and when they paste it any other place than it automatically dencrypted?

查看:97
本文介绍了我希望我的访问者复制加密文本,当他们粘贴任何其他地方而不是自动解密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我想要我的网站页面的代码,我的访问者在那里复制加密文本,当他们粘贴任何其他地方而不是自动解密时.. plz帮助我



我尝试过的事情:



i已经试过了很多东西,但没有找到任何解决方案......请帮助我你能做什么所以...

hey i want code for my website page from where my visitors copy an encryped text and when they paste it any other place than it automatically dencrypted.. plz help me

What I have tried:

i have tryied sevral thing but have'nt found any solution... plz help me u can do so..

推荐答案

问题是内容不能在剪贴板上加密。它必须被解密。这是因为目标应用程序将不知道如何解密字符串。



页面中的javascript代码必须能够解密字符串。通常,您在页面上有一个按钮,让您的javascript代码解密文本并将其放在剪贴板上。一旦代码解密了字符串,代码就可以将该字符串复制到剪贴板。请参见 [ ^ ]回答有关如何将某些内容复制到剪贴板的详细讨论。
The problem is that the content cannot be on the clipboard encrypted. It has to be decrypted. This is because the target application will have no idea how to decrypt the string.

The javascript code in your page must be able to decrypt the string. Typically, you'd have a button on the page to have your javascript code decrypt the text and place it on the clipboard. Once the code has decrypted the string it's a simple matter for the code to copy that string to the clipboard. See this[^] answer for a good discussion of how to copy something to the clipboard.


这篇关于我希望我的访问者复制加密文本,当他们粘贴任何其他地方而不是自动解密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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