Hi Sander,
That is what I was thinking to do but for some reason I was thinking there
might be some sort of secure browser encryption or some sort of secure JS
that I can do these stuff securely in AngularJS.
Thanks for your help.
Vafa
On Wednesday, 13 May 2015 09:52:04 UTC+1, Sander Elias wrote:
>
> Hi Vafa,
>
> No, not really a security freak. Don’t ever push your HMAC to a client. It
> will instantly break security.
> Create a small server function that calculates a SHA on behalf of the
> browser. Put that function in your public part.
> Make sure it only responses to requests from your own domain.
> then you can use it in your angular app something like:
> $http.get('getSHA',dataNeededToGenerateSHAminusHMAC).then(...)
>
> Does that help you a bit?
>
> Regards
> Sander
>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.