Patent ID: 11880451
Assignee: BLACKBERRY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A computer-implemented method, comprising:
establishing a code package to be injected into a web page, wherein the code package comprises at least one element, wherein the at least one element includes a first script to be executed before executing a code of the web page;
injecting the at least one element to the web page to execute the first script, wherein an execution of the first script comprises generating a script element which comprises one or more secrets that are generated by the execution of the first script, wherein the one or more secrets comprise at least a password and a salt value, wherein the script element comprises an immediately-invoked anonymous function;
appending the script element to the web page; and
after the appending, in response to an execution of the script element being launched, deleting the script element from the web page, so as to prevent leak of content of the script element.