0

Since Minify and Uglify can be easily reverse engineered, how then can source code of AngularJS apps really be secured so a developer cannot so easily copy and reuse code I sweat over for months?

user1729972
  • 712
  • 2
  • 9
  • 29
  • 2
    If you don't want to share your code why should we sweat for a few minutes in order to help you? ;) If others copy your code it shouldn't really bother you tbh. – Chrillewoodz Jul 10 '15 at 17:30
  • you can't, other than by not letting anyone use it. – Kevin B Jul 10 '15 at 17:34
  • 2
    it's a bit ironic that your code is built on top of an open source library someone else slaved over and shared with you for free – aw04 Jul 10 '15 at 17:35
  • There's a gap between RE and actual code theft. Usually obfuscation and server side for sensible parts are more than enough, but be careful, they can offend open-source bigots. – Estus Flask Jul 10 '15 at 18:05
  • javascript is opensource – YOU Jul 11 '15 at 11:28

1 Answers1

3

You can't.

Any client-side functionality can be (usually easily) reverse engineered and reused.

You secure your code by applying appropriate Terms & Conditions to the use of your application.

Agop
  • 1,907
  • 17
  • 23
  • This is just another reason why we stick with developing web apps in Java server side frameworks like Wicket that give you all the dynamic HTML5, AJAX, partial updating of page components and model/view based architecture that Angular provides but without the 'hey people with no respect for IP laws, here's the source code of our entire UI' aspect of Angular. Plus by sticking with Java we don't have to throw away type safety and proper support for the object oriented paradigm which is essential if you want to developer your apps on the DRY principle. – Volksman May 05 '16 at 19:00