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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS Security LIVE!

Hosted by security experts, AWS Security LIVE! showcases AWS Partners tackling real-world security challenges. Join live and get your security questions answered.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️