问题描述
是的,我正在尝试建立一个安全的聊天网站,对您的消息进行加密和编码,只有您和与您交谈的人才能阅读这些消息。我正在使用RC4加密和Base64编码。问题是我使用表单给用户输入他们的消息,然后我需要JavaScript加密它并在将其发送到服务器之前对其进行编码。我无法在服务器上处理它的原因是因为这不是端到端加密。我有脚本加密它并对其进行编码。只是我需要它才能在发送之前完成它。我使用PHP来管理数据。
我尝试过:
我尝试用JavaScript发帖子。但是,这是一个很麻烦的事情,他们最好是一个更好的选择。
Right I am trying to make a secure chat website and encrypts and encodes your messages and only you and the person your talking to can read them. I am using RC4 encryption and Base64 encoding. The problem is that I am using a form for the user to type they message and then I need the JavaScript to encrypt it and encode it before it is sent to the server. The reason I can’t process it on the server, is because that wouldn’t be end to end encryption. I have the script to encrypted it and encode it. Is just I need it to do it before sending. I am using PHP to manage the data.
What I have tried:
I have trying making a post request in JavaScript. But it was to much of a hassle they most be a better option then that.
推荐答案
这篇关于如何在将文本发送到服务器之前处理文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!