Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 5/6 project query parameter encryption

I'm trying to encrypt query parameters in an Angular 5/6 project. We have some sensitive data in the URL which we might need to encrypt or hash so an outside user won't know.

Is there a way to do that or worth doing? For example, would that be really safe, or maybe have a big impact on performance?

I've seen some routing configured as /edit/:id/:name, but I'm confused as to whether it's really safe to expose the ID or other parameters in the URL.

like image 508
Kev D. Avatar asked Feb 13 '26 03:02

Kev D.


1 Answers

Like @jonrsharpe suggest, we can use eventEmiiter or subject through service to pass data as an object in between component so no need to work on hash query parameter in routing.

like image 121
Kev D. Avatar answered Feb 16 '26 16:02

Kev D.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!