deobfuscate
Reverses obfuscate. Never throws: a token that obfuscate could not have produced
(another alphabet, padding, broken length, bytes that are not UTF-8, not a string) gives null.
Available since v3.1.9
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
token | string | A token returned by obfuscate |
Returns
Section titled “Returns”string | null — The original text, or null for an invalid token
Examples
Section titled “Examples”Rebuild the address in the browser
Section titled “Rebuild the address in the browser”Reverses obfuscate, in Node.js and in browsers alike.
A bad token gives null
Section titled “A bad token gives null”It never throws, so the caller just checks for null.
