Open naveenduttvyas opened 8 years ago
Hi, first of all let me start with your simple question if you don't want to add '_enc' to the fields you want to encrypt / decrypt. You can configure the pattern string as you like for example if your json object contains the property data always und you want to encrypt / decrypt only that field. Then change the pattern to 'data'. https://github.com/pussinboots/angularjs-crypto#set-the-field-name-pattern If you need a different aproach then you can explain me what you need and i can implement that and make it configurable.
If you need a full encryption of the json object that you send by post or put for example then use the fullcryptbody: true configration. https://github.com/pussinboots/angularjs-crypto#complete-encoding-of-body.
Why it is not working ? Can you provide me your code pussinboots666@gmail.com then i can check what is missing or you can compare your code with the test example what is provided under or with the Application Demo Example.
Hopefully i could help you. have a nice day
I dont want to set any pattern, if my json object contains properties, name, age, city, I just want them to encrypt them as is. no addition like _enc or any other pattern, whatever my json object has, want to encrypt that. and decrypt at angular side then
On Sun, Mar 13, 2016 at 9:44 PM, Frank notifications@github.com wrote:
Hi, first of all let me start with your simple question if you don't want to add '_enc' to the fields you want to encrypt / decrypt. You can configure the pattern string as you like for example if your json object contains the property data always und you want to encrypt / decrypt only that field. Then change the pattern to 'data'. https://github.com/pussinboots/angularjs-crypto#set-the-field-name-pattern If you need a different aproach then you can explain me what you need and i can implement that and make it configurable.
If you need a full encryption of the json object that you send by post or put for example then use the fullcryptbody: true configration. https://github.com/pussinboots/angularjs-crypto#complete-encoding-of-body.
Why it is not working ? Can you provide me your code pussinboots666@gmail.com then i can check what is missing or you can compare your code with the test example what is provided under https://angularjs-crypto.herokuapp.com/ or with the Application Demo Example https://secure-notes.herokuapp.com/#/get.
Hopefully i could help you. have a nice day
— Reply to this email directly or view it on GitHub https://github.com/pussinboots/angularjs-crypto/issues/7#issuecomment-195988497 .
Okay, so you have for example an json object { name : "...", age: "17", .... }
and you want that all properties of this json object are encrypted like { name: 'encrypted' age: 'encrypted' ... } Maybe use the full body encryption. Otherwise i can implement for example when you set the pattern = undefined it will encrypt every json property but be aware of that all json properties has to be from type string at the moment.
Hi,
finished first implementation encoding complete json if pattern is provided as undefined or "*". For a working example look here . There is a limitation i will continue working if your json contains embedded objects or array. May this implementation suites your requirements.
Hi,
I followed exact steps what you mentioned, and even then data when I see by pressing F12 of browser in xhr request, i can read data properly and no encryption? What I am missing? Have followed exactly what is been said.
Also, if I dont want to append _enc for every paramter I pass and receive, what should I do avoid it? I dont want it to a pre-requisite because that would make my code dirty.