self_encryption

所属分类:加密解密
开发工具:Rust
文件大小:131KB
下载次数:0
上传日期:2023-03-15 14:56:05
上 传 者sh-1993
说明:  文件自加密器
(file self encryptor)

文件列表:
CHANGELOG.md (14036, 2023-03-15)
Cargo.toml (1237, 2023-03-15)
LICENSE (36323, 2023-03-15)
benches (0, 2023-03-15)
benches\lib.rs (3524, 2023-03-15)
codeowners (31, 2023-03-15)
examples (0, 2023-03-15)
examples\basic_encryptor.rs (7919, 2023-03-15)
img (0, 2023-03-15)
img\self_encryption.png (85136, 2023-03-15)
rustfmt.toml (25, 2023-03-15)
src (0, 2023-03-15)
src\chunk.rs (2168, 2023-03-15)
src\data_map.rs (4290, 2023-03-15)
src\decrypt.rs (3020, 2023-03-15)
src\encrypt.rs (3544, 2023-03-15)
src\encryption.rs (2271, 2023-03-15)
src\error.rs (1732, 2023-03-15)
src\lib.rs (12347, 2023-03-15)
src\test_helpers.rs (2483, 2023-03-15)
src\tests.rs (6476, 2023-03-15)
tests (0, 2023-03-15)
tests\lib.rs (13338, 2023-03-15)
... ...

# self_encryption Self encrypting files (convergent encryption plus obfuscation) |Crate|Documentation| |:---:|:-----------:| |[![](https://img.shields.io/crates/v/self_encryption.svg)](https://crates.io/crates/self_encryption)|[![Documentation](https://docs.rs/self_encryption/badge.svg)](https://docs.rs/self_encryption)| | [MaidSafe website](https://maidsafe.net) | [SAFE Dev Forum](https://forum.safedev.org) | [SAFE Network Forum](https://safenetforum.org) | |:----------------------------------------:|:-------------------------------------------:|:----------------------------------------------:| ## Overview A version of [convergent encryption](http://en.wikipedia.org/wiki/Convergent_encryption) with an additional obfuscation step. This pattern allows secured data that can also be [de-duplicated](http://en.wikipedia.org/wiki/Data_deduplication). This library presents an API that takes a set of bytes and returns a secret key derived from those bytes, and a set of encrypted chunks. A reverse function is provided, where the pair returned from encryption (secret key and encrypted chunks) is passed in, returning the original bytes. There is also the possibility to seek the original bytes in the contents of the encrypted chunks, by calling the seek helper function to produce information used to locate the relevant chunks, and then call the decrypt_range api with the chunks, the secret key and seek information from the previous step. There is an important aspect to note: This library provides very secure encryption of the data, and the returned encrypted chunks can be considered as safe as if encrypted by any other modern encryption algorithm. **However** the returned secret key **requires the same secure handling as would be necessary for any secret key**. ![image of self encryption](https://github.com/maidsafe/self_encryption/blob/master/img/self_encryption.png?raw=true) ## Video of the process [self_encryption process and use case video](https://www.youtube.com/watch?v=Jnvwv4z17b4) ## Whitepaper [Self Encrypting Data](https://docs.maidsafe.net/Whitepapers/pdf/SelfEncryptingData.pdf), David Irvine, First published September 2010, Revised June 2015. ## Examples ### Using `self_encryptor` This library splits a set of bytes into encrypted chunks and also produces a secret key for the same. This secret key allows the file to be reconstituted. Instructions to use the 'basic_encryptor' example are as follows: ##### Encrypt a file: cargo run --example basic_encryptor -- -e You should now have the example binary in `../self_encryption/target/debug/examples/`. The `secret_key` for the given file and it's encrypted chunks will be written to the current directory. ##### Decrypt a file: cargo run --example basic_encryptor -- -d This will restore the original file to the given destination path. ## License Licensed under the General Public License (GPL), version 3 ([LICENSE](LICENSE) http://www.gnu.org/licenses/gpl-3.0.en.html). ### Linking exception self_encryption is licensed under GPLv3 with linking exception. This means you can link to and use the library from any program, proprietary or open source; paid or gratis. However, if you modify self_encryption, you must distribute the source to your modified version under the terms of the GPLv3. See the LICENSE file for more details. ## Contributing Want to contribute? Great :tada: There are many ways to give back to the project, whether it be writing new code, fixing bugs, or just reporting errors. All forms of contributions are encouraged! For instructions on how to contribute, see our [Guide to contributing](https://github.com/maidsafe/QA/blob/master/CONTRIBUTING.md).

近期下载者

相关文件


收藏者