pagecrypt - npm

PHOTO EMBED

Wed Sep 28 2022 05:09:23 GMT+0000 (Coordinated Universal Time)

Saved by @info

import { encryptHTML } from 'pagecrypt/core'

const inputHTML = `
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="UTF-8">
        </head>
        <body>
            Secret
        </body>
    </html>
`

// Encrypt a HTML string and return an encrypted HTML string.
// Write it to a file or send as an HTTPS response.
const encryptedHTML = await encryptHTML(inputHTML, 'password')
content_copyCOPY

https://www.npmjs.com/package/pagecrypt