Storing the license key in a front-end app

Tags: #<Tag:0x00007efc719441d8>

Hi,

I’d like to know what’s the best strategy for storing a license key in a front-end app? I’m worried about other people reading the source code of my JavaScript app and stealing my license key?

Regards

Hi @samuele.a

JavaScript code is visible to everyone who has a browser so it is hard to hide it. But one of the options to make it less visible is to use obfuscation, like here https://jscrambler.com/products/code-integrity/javascript-obfuscation
Here is an example https://jsfiddle.net/hxqnv8g5/1/