#nor #data #algorithm #decryption #file #ment #professional

s_nor

一个非常简单的加密算法 * 不适用于专业使用

2个稳定版本

1.0.1 2024年5月13日

#411 in 算法

MIT 许可证

38KB
775

本项目不适用于专业领域!因为它是开源的,并且可以经过一些努力进行解密

S_NOR (Simplex_Neko的过度限制)

S_NOR是一个简单的Rust库,用于将不同的数据值映射到不同的数字。

功能

  • 加密:使用encrypt()函数加密数据。
  • 解密:使用decrypt()函数解密加密数据。

安装

将以下内容添加到您的Cargo.toml文件中

[dependencies]
s_nor = "0.1.0"

或粘贴到终端中

cargo add s_nor

用法

use s_nor::encrypt;
use s_nor::decrypt;

let file = "example.txt";
let password = "password123";

// Encrypt data
let encrypted_data = s_nor::encrypt(file, password);

// Decrypt data
let decrypted_data = s_nor::decrypt(file, password);
let decrypted_text = String::from_utf8_lossy(&decrypted_data);

许可证

MIT License

Copyright (c) [2024] [Skub , Neko]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

感谢 ->

感谢neko帮助创建S_NOR,没有她,我就无法构建这个

依赖项

~5–17MB
~198K SLoC