Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/NativeScript/NativeScript
/ encodeDecode
Function
encodeDecode
apps/toolbox/src/pages/winter-tc.ts:40–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
}
39
40
export
function
encodeDecode() {
41
const
encoded = btoa(
'Osei'
);
42
43
console.log(encoded);
44
45
console.log(atob(encoded) ===
'Osei'
);
46
}
47
48
async
function
gen_hmac() {
49
let
message =
'Hello World'
;
Callers
nothing calls this directly
Calls
3
btoa
Function · 0.85
atob
Function · 0.85
log
Method · 0.45
Tested by
no test coverage detected