Solved Is there a way to keep javascript private?

Clone / X
July 14, 2018 at 08:22:10
Specs: XP SP3, AMD Ath 64X2 2GB
Is there a way to keep javascript "privare"?

Most sites which use javascript can simply be saved.
Several examples below.
If not, what language could be used instead?


Wallet Generator
https://walletgenerator.net/

Bit Address
https://www.bitaddress.org/bitaddre...

Solar Angle Calculator
http://solarelectricityhandbook.com...

DGB
https://walletgenerator.net/?curren...

=====================

M2 Get custom script or take private lessons


See More: Is there a way to keep javascript private?

Reply ↓  Report •

#1
July 14, 2018 at 11:43:14
✔ Best Answer
I'm just going to assume you meant "private," and typoed it twice.

Nope. Any script you run on the client end can be understood by a sufficiently technical end user. You can run it through a code minimizer, and it'll obfuscate the script as a side effect, but there's plenty of deobfuscators out there. Written in JavaScript, no less.

You used to be able to use ActionScript, and require Adobe Flash, which adds an additional step in getting to the code, but Apple iDevices took care of that. Going even further back, you could use Java or compile something to ActiveX, but it's no longer the late '90s. Even then, decompliers and disassemblers are a thing.

In short, as long as you're going to run code on a client's device, the client needs to have access to said code. If you want to hide what you're doing, you need to do the work yourself and feed the user the results. That's where the server-side languages come in to play.

How To Ask Questions The Smart Way

message edited by Razor2.3


Reply ↓  Report •

#2
July 14, 2018 at 13:31:01
Thanks, R2
[CN said that was too short]
Thank you very big, R2
2018-07-15 3:31:03.98 GMT +7

=====================

M2 Get custom script or take private lessons


Reply ↓  Report •

#3
July 14, 2018 at 13:34:48
#1 was marked best answer. You gotta wonder why.

=====================

M2 Get custom script or take private lessons


Reply ↓  Report •

Related Solutions

#4
July 14, 2018 at 18:57:25
I suppose there's a reason for CN to propercase (vt) the title. I wish I knew what it was.

=====================

M2 Get custom script or take private lessons


Reply ↓  Report •

#5
July 14, 2018 at 20:39:52
It's only for the title. Everywhere else, your case is preserved. Done with a CSS setting in computing-2.0.css:
.thread_header {
  text-transform: capitalize; . . .

How To Ask Questions The Smart Way

message edited by Razor2.3


Reply ↓  Report •

Ask Question