Skip to content

Rust WebAssembly (wasm-rs) 加解密

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT
Notifications You must be signed in to change notification settings

1s1y/wasm-encrypt-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust WebAssembly 实现的加解密 demo

可以让你的静态博客实现一定程度上的内容保护。

对应的 js 端加解密实现见 cloudflare worker encrypt

通过 pbkdf2 导出密钥, 然后 aes-256-gcm 加解密。

# 生成项目脚手架
cargo generate --git https://github.com/rustwasm/wasm-pack-template.git --name my-project
cd my-project

# 编译 wasm web
wasm-pack build --target web

# 项目引用见 www/index.js

参考资料

About

Rust WebAssembly (wasm-rs) 加解密

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published