# Web Rust 加密安全示例

Web Rust 加密安全示例，包括哈希计算、对称加密和Base64编码

> 标准页面: https://test.elysiatools.com/zh/samples/web-cryptography-rust

- **分类:** Rust

- **关键词:** rust, web, cryptography, hashing, encryption, security, sha256, aes, base64

## 示例

- **哈希计算**: 使用sha2和md5 crate计算MD5、SHA-1、SHA-256和SHA-512哈希
- **对称加密**: 使用AES的GCM模式加密和解密数据
- **Base64编码**: 使用Base64编码及标准URL安全变体编码和解码数据

## 相关工具

- [JSON 转 Rust Struct](https://test.elysiatools.com/zh/tools/json-to-rust): 将 JSON 数据转换为 Rust struct，含 serde Serialize/Deserialize 派生、snake_case 字段与 serde rename 属性
- [Chrome网上应用商店截图调整](https://test.elysiatools.com/zh/tools/chrome-web-store-screenshots-resized): 将图片调整为Chrome网上应用商店截图尺寸，同时保留完整内容和原始宽高比例
- [Web Push RFC 8030 请求 + VAPID + RFC 8291 负载加密编码器](https://test.elysiatools.com/zh/tools/web-push-rfc8030-vapid-rfc8291-payload-encrypted-content-encoder): 编码完整的 Web Push 发送流程：RFC 8291 aes128gcm 负载加密、RFC 8292 VAPID ES256 JWT、RFC 8030 头部、APNs/FCM 头部对照与解密往返验证。
- [Web 搜索（SearXNG JSON）](https://test.elysiatools.com/zh/tools/web-search): 通过 s.stdlang.com 的 SearXNG 实例搜索网页，返回 JSON 结果供自动化或后续工具使用。
- [网页字体配对实验室](https://test.elysiatools.com/zh/tools/webfont-pairing-lab): 并排预览 标题 + 正文 的 Google 字体配对，调节字重与行高，复制即可粘贴的 CSS @import + 变量代码。精选 22 款字体及 7 组经典搭配预设。
- [AES 加密工具](https://test.elysiatools.com/zh/tools/aes-encryption-tool): 使用 AES-256-GCM 对文本和文件进行加密或解密，并导出基于 IV 的加密包
- [Bcrypt哈希生成器](https://test.elysiatools.com/zh/tools/bcrypt-generator): 从密码生成bcrypt哈希
- [Excel字段级加密器](https://test.elysiatools.com/zh/tools/excel-field-encryptor): 使用各种加密方法对Excel文件中的特定字段进行加密以保护敏感信息

## 相关内容

- [Android Java 加密安全示例](https://test.elysiatools.com/zh/samples/android-cryptography-java): Android Java 加密安全示例，包括哈希计算、AES加密解密和Base64编码
- [Android Kotlin 加密安全示例](https://test.elysiatools.com/zh/samples/android-cryptography-kotlin): Android Kotlin 加密安全示例，包括哈希计算、AES加密解密和Base64编码
- [加密算法示例](https://test.elysiatools.com/zh/samples/cryptography): 全面的加密示例，包括对称加密、非对称加密、哈希函数、数字签名和密钥交换协议
- [macOS Objective-C 加密安全示例](https://test.elysiatools.com/zh/samples/macos-cryptography-objectivec): macOS Objective-C 加密安全示例，包括哈希计算、对称加密和Base64编码
- [macOS Swift 加密示例](https://test.elysiatools.com/zh/samples/macos-cryptography-swift): macOS Swift 加密示例，包括哈希函数、加密/解密和数字签名
- [Web Go 加密安全示例](https://test.elysiatools.com/zh/samples/web-cryptography-go): Web Go 加密安全示例，包括哈希计算、对称加密和Base64编解码
