DEV Community

Dinesh Dixit(Mechatron)
Dinesh Dixit(Mechatron)

Posted on

1

Can we hide payloads in api calls?

I have a question about api calls we made in angular. I have made an simple application where user need to login. When I make api call to log user in, in payload it shows data of user. Is there any way to hide the payload data?Any idea?? or suggestion?

Top comments (2)

Collapse
 
suneeh profile image
Suneeh

The data in the Payload is (hopefully) SSL Encrypted. So I don't see a big issue in sending login information over the wire in clear text. But if you really want to, you could either base64 encode it, to make it less obvious. If you really want to be super secure (for whatever reason ever) you could still encrypt it with a Public Key of the Backend before sending it.

Can you explain why you think this is an issue?

Collapse
 
mechatron profile image

Thank u. Not an issue, just to know the limits of browsers and exploring new ideas.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more