https Node js not working
So I'm creating this app in node.js, and I want to encrypt all the client-server information, so if some hacker gets through, he gets nothing. I know a website created on replit is automatically https, but it's obviously not encrypted (I tried to "hack" my application and it was NOT encrypted). So I'm trying to use open-ssl, but when I change
const https = require('https');), replit says "make sure your repl is open to http traffic". Any help would be much appreciated or I'll probably need to drop replit.
I'm using express.
@nbbcsf you would run into that problem whether or not you used repl.it, HTTPS does not protect against that sort of attack.