有时我们想和好友共享自己的账号,这就需要想办法让好友知道我们的账号密码。
如果好友就在身边,那可太妙了:我们可以用U盘拷贝或者直接把密码念一遍; 若是非常不巧,好友远在天边,我们就只能通过一些通信软件,在网络上传递账号密码。
但是密码是一种非常隐私的数据,我们不希望自己的密码在互联网上留下明文痕迹。 为了防止潜在的隐私泄漏,我们希望在传递密码时对数据进行加密。
这里提供了一个Web解决方案,你可以将其部署在任意服务器上。
双方使用浏览器传递隐私数据时,将使用RSA端到端加密。
This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
See Vite Configuration Reference.
cd vue
npm install
npm run dev
npm run build
Lint with ESLint
npm run lint