The purpose of this network is to provide secured AES asymmetric implementation that uses RNA to implement the asymmetric nature of this project's encryption.
This crate aims to prevent man in the middle attacks by encrypting pre-shared keys that are sent in each packet. By doing this, even if a hacker has a public key, they will be unable to feed false information that could cause a crash to either of the peers. in this way each peer can maintain knowledge of the other in both directions, which allows for a more decentralized approach than traditional TLS.
This version is the first stabalized version, as such nightly is no longer required to use it. This version doesn't include anything that 0.1.7 doesn't except the ability to generate an in memory tar file of the HashDatabase type.
The SLLP implementation in this project ensures a pseudo connection that is private between two peers, by authenticating encrypted pre-shared keys. it is done for the sake of transfering large amounts of data quickly when precision is not needed.
```rust use networking::database::HashDatabase; use networking::ArtificePeer; use networking::{randomstring, testconfig};
fn main(){ // generate aes encryption key let key = randomstring(16).intobytes(); let (peer, config) = testconfig();
let mut database: HashDatabase
let mut seconddatabase: HashDatabase
toml
tokio = {version = "0.2.21", features = ["full"]}
```rust use networking::{asyncronous::{AsyncHost, AsyncRecv}, test_config};
async fn main() -> Result<(), Box
```rust use networking::{asyncronous::{AsyncHost, AsyncSend, AsyncNetworkHost}, test_config};
async fn main() -> Result<(), Box
for sync examples and sllp examples see docs the camera example is to show a practical application, and test the network by supplying high load