[Vuejs]-ApplePay – Decrypting token using VueJS

0👍

You should carefully read the description of the modules you are using:

Apple Pay Decrypt:

[…]This works in node and not on a browser, as it requires the built-in crypto package and secret keys (.pem files), which should never exist on the client anyway.[…]

So, on the one hand, it won’t run in the browser due to the dependencies to crypt (and x509) and even if it would, then you shouldn’t do that due to the information you would expose.

Leave a comment