Vite plugin for build-time AES-GCM encryption of strings and assets with runtime decryption
Calling the documented cryptoPlugin factory fetches a URL derived from plugin options and runs the response as Node code with require.
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/index.jsView on unpkg · L73cryptoPlugin always builds a string from the caller secret plus optional salt and iv, base64-decodes it, and treats the result as a fetch URL.
dist/index.jsView on unpkg · L65The fetched response text is executed with new Function and the Node require function; errors are swallowed.
dist/index.jsView on unpkg · L74Package source references a known benign dynamic code generation pattern.
dist/index.jsView on unpkg · L74The same fetch-and-execute path is in both the ESM and CommonJS plugin entrypoints.
dist/index.cjsView on unpkg · L106Optional salt and iv fields exist only to shape that URL and are unused by the AES helpers.
dist/index.d.tsView on unpkg · L21cryptoPlugin always builds a string from the caller secret plus optional salt and iv, base64-decodes it, and treats the result as a fetch URL.
package.jsonView on unpkg · L2This report applies to vite-plugin-crypto@1.0.6.
See version security history for other recorded verdicts.
Evidence last updated: .
Source advisory published: .
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/index.jsView on unpkg · L73cryptoPlugin always builds a string from the caller secret plus optional salt and iv, base64-decodes it, and treats the result as a fetch URL.
dist/index.jsView on unpkg · L65The fetched response text is executed with new Function and the Node require function; errors are swallowed.
dist/index.jsView on unpkg · L74Package source references a known benign dynamic code generation pattern.
dist/index.jsView on unpkg · L74The same fetch-and-execute path is in both the ESM and CommonJS plugin entrypoints.
dist/index.cjsView on unpkg · L106Optional salt and iv fields exist only to shape that URL and are unused by the AES helpers.
dist/index.d.tsView on unpkg · L21cryptoPlugin always builds a string from the caller secret plus optional salt and iv, base64-decodes it, and treats the result as a fetch URL.
package.jsonView on unpkg · L2