vp-very-simple-encrypt-plugin
v0.2.2
Published
## Warning: This plugin merely performs encryption on the front end. It is extremely easy to break and cannot guarantee the security of your files
Readme
vp-very-simple-encrypt-plugin
Warning: This plugin merely performs encryption on the front end. It is extremely easy to break and cannot guarantee the security of your files
install it
npm install vp-very-simple-encrypt-plugindefine the protection scope and set a password
export default defineUserConfig({
plugins: [
verySimpleEncrypt({
encryptPaths: [
{
file: "/busszing/README.md",
protectDirectoryIfIndex: true,
password: "qwer"
},
]
}),
]
})file can accept
- a single file name
- a directory name
README.md, which is the index file of a directory. ButprotectDirectoryIfIndexmust betrue, otherwise, this config is invalid
