createKeyFromString() — astro Function Reference
Architecture documentation for the createKeyFromString() function in server-islands.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 54f1110f_0142_6327_a717_581bff0b309c["createKeyFromString()"] 34b6b27d_d6d8_cec4_7941_5d9834c50005["server-islands.test.js"] 54f1110f_0142_6327_a717_581bff0b309c -->|defined in| 34b6b27d_d6d8_cec4_7941_5d9834c50005 5aff8100_a095_934b_f3f0_8bd69567b9da["getEncryptedComponentExport()"] 5aff8100_a095_934b_f3f0_8bd69567b9da -->|calls| 54f1110f_0142_6327_a717_581bff0b309c style 54f1110f_0142_6327_a717_581bff0b309c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/server-islands.test.js lines 11–21
async function createKeyFromString(keyString) {
const binaryString = atob(keyString);
const bytes = new Uint8Array(binaryString.length);
for (let i = 0; i < binaryString.length; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
return await crypto.subtle.importKey('raw', bytes, { name: 'AES-GCM' }, false, [
'encrypt',
'decrypt',
]);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does createKeyFromString() do?
createKeyFromString() is a function in the astro codebase, defined in packages/astro/test/server-islands.test.js.
Where is createKeyFromString() defined?
createKeyFromString() is defined in packages/astro/test/server-islands.test.js at line 11.
What calls createKeyFromString()?
createKeyFromString() is called by 1 function(s): getEncryptedComponentExport.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free