0

How can I encrypt in html?

Hi! Do you know how to encrypt “textarea” on html?

27th Aug 2021, 11:35 AM
Pietro
Pietro - avatar
20 ответов
+ 2
If you want to encrypt it on the way to the server, use JavaScript. Else use a server side language like php. Maybe TLS (https) is enough, but I don't know your usecase so I can't say which of these options fit your needs.
28th Aug 2021, 7:10 PM
Knäcke Brot
Knäcke Brot - avatar
+ 1
In which way do you want to encrypt in the text area? Basically, you could simply replace the input with your encrypted version...
27th Aug 2021, 11:57 AM
Lisa
Lisa - avatar
+ 1
I don't understand what exactly you want to do. Link your code and describe what it should look like encrypted.
27th Aug 2021, 12:16 PM
Lisa
Lisa - avatar
0
Sorry, I know just a little about coding, can you be more specific?
27th Aug 2021, 12:00 PM
Pietro
Pietro - avatar
0
Do you want it to look like a password field? Maybe this helps: https://stackoverflow.com/questions/12895774/how-to-make-a-textarea-act-like-a-password-field Is it important that is a text area? Or would a simple text field suffice?
27th Aug 2021, 3:52 PM
Lisa
Lisa - avatar
0
No it’s not. A simple text field suffice
27th Aug 2021, 4:07 PM
Pietro
Pietro - avatar
0
Then you can make an input of type password like in this example? https://www.w3schools.com/Tags/att_input_type_password.asp
27th Aug 2021, 4:15 PM
Lisa
Lisa - avatar
0
If I'm boring you I'm sorry. Anyway, what I need is a text field where I can write. Once I wrote something in there and I send it I need something to encrypt it. In fact this text will contain sensitive information and I don't want that someone intercepts the text . I hope I explained it well, if not I'll retry.
27th Aug 2021, 4:24 PM
Pietro
Pietro - avatar
0
Wouldn't the encryption occur on server communication (and not directly on the html)?
27th Aug 2021, 4:27 PM
Lisa
Lisa - avatar
0
I don’t know :) So what I need to do to obtain what I described to you?
27th Aug 2021, 4:29 PM
Pietro
Pietro - avatar
0
I need to do something out html?
27th Aug 2021, 4:29 PM
Pietro
Pietro - avatar
0
Do you want to send data? Or do you just want the dots ●●● when some types text?
27th Aug 2021, 4:40 PM
Lisa
Lisa - avatar
0
No dots, just send data
27th Aug 2021, 4:54 PM
Pietro
Pietro - avatar
0
I don't know about it, but you would need something more than just html
27th Aug 2021, 4:57 PM
Lisa
Lisa - avatar
0
Ok, cool. I’ll try it further. Thank you so much for your time.
27th Aug 2021, 4:59 PM
Pietro
Pietro - avatar
0
I'd use php to encrypt data. You can write it with the html, but it's executed by the server, so the user doesn't see how you encrypted the text (nor if you encrypted it at all).
28th Aug 2021, 2:01 PM
Sanpaku
Sanpaku - avatar
0
JavaScript or php can be used, just like how you encrypt text using java or python, but they have different syntax of course, you can't do that by knowing html only.
28th Aug 2021, 2:23 PM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
0
Thank you all!
28th Aug 2021, 4:12 PM
Pietro
Pietro - avatar
0
Use js to encrypt your html
29th Aug 2021, 4:04 AM
Siriki Lohit
Siriki Lohit - avatar