Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Btw I am providing this to show client side without regard to keys baked into .js which of course is foolish. For the topic of security figure out where SSL figures in. SSL would remove this whole question to begin with. Commented Jun 29, 2015 at 20:42
  • there is a good reason why you see this on node and not client side. It is a server side typical use, say php or nodeJs. For client side one would use servers public key of pki (think rsa). Only server can decrypt using pki private key. Or one uses SSL/TLS connections and doesn't re-invent the wheel. Commented Jun 29, 2015 at 21:01