Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Yesterday at 2:23 PM
Ad icon
Wechat qr verification
Pawan2005
Updated:
Yesterday at 1:28 AM
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Wednesday at 5:34 PM
Pure VPN - Up to 27 Months
vgp
Updated:
Jun 5, 2026
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Jun 2, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Angular + java Encrypt karanna monawa da thiya widi
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="jdchathuranga" data-source="post: 29102646" data-attributes="member: 198330"><p>Machan,</p><p>Why are you doing this, Encrypt means, those data can only be accessible by the people who has access to the key</p><p>Given that,</p><p></p><p>If the secret key is in the browser(in the angular js app in a plan text form), anyone who has access to the angular app can access the secret. You are not getting any additional advantage at the browser level</p><p>Assume that you have SSL between angular app and the server, your secret key transfer to the backend is already secured by SSL, you are not getting any additional advantage by doing encryption at the js app level.</p><p></p><p>By having encrypted data in the db is an advantage, people who has access to the db can't access data. if that what you need, you can simply send the secret to the backend, and in the backend you can encrypt that secret key and insert in to the db and decrypt when you want to read that data. if you are doing this, you have another problem, how do you manage your encryption key. that hast to be stored somewhere. If you want to implement this properly, you can try to use some key vault to store the key. then again if someone has access to the db and key vault both, he can access data. </p><p></p><p>If you are encrypting at the browser level, your problem gets more complicated, you have to have a secure way to send the keys to js app etc. this case key has to be in plain text, then you are back to the original problem. secret is encrypted, but key is in the plain text form in the browser.</p></blockquote><p></p>
[QUOTE="jdchathuranga, post: 29102646, member: 198330"] Machan, Why are you doing this, Encrypt means, those data can only be accessible by the people who has access to the key Given that, If the secret key is in the browser(in the angular js app in a plan text form), anyone who has access to the angular app can access the secret. You are not getting any additional advantage at the browser level Assume that you have SSL between angular app and the server, your secret key transfer to the backend is already secured by SSL, you are not getting any additional advantage by doing encryption at the js app level. By having encrypted data in the db is an advantage, people who has access to the db can't access data. if that what you need, you can simply send the secret to the backend, and in the backend you can encrypt that secret key and insert in to the db and decrypt when you want to read that data. if you are doing this, you have another problem, how do you manage your encryption key. that hast to be stored somewhere. If you want to implement this properly, you can try to use some key vault to store the key. then again if someone has access to the db and key vault both, he can access data. If you are encrypting at the browser level, your problem gets more complicated, you have to have a secure way to send the keys to js app etc. this case key has to be in plain text, then you are back to the original problem. secret is encrypted, but key is in the plain text form in the browser. [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom