An open API service indexing awesome lists of open source software.

https://github.com/goodmanwen/dynamic_salt

Dynamic salt addition locations & values under some certain rules.
https://github.com/goodmanwen/dynamic_salt

Last synced: about 1 year ago
JSON representation

Dynamic salt addition locations & values under some certain rules.

Awesome Lists containing this project

README

          

# Dynamic Salt

[![licence](https://img.shields.io/github/license/GoodManWEN/dynamic_salt)](https://github.com/GoodManWEN/dynamic_salt/blob/master/LICENSE)
[![Build](https://github.com/GoodManWEN/dynamic_salt/workflows/Build/badge.svg)](https://github.com/GoodManWEN/dynamic_salt/actions?query=workflow:Build)

Accepts a byte string, add salt at dynamic locations & values under some certain rules.

## Usage

Clone and build, modify `secret` in `\src\lib.rs` if you like
```
# Windows Powershell
git clone https://github.com/GoodManWEN/dynamic_salt.git
cd dynamic_salt
cargo build --release
cp .\target\release\*.dll .\
```

Python script,
```python
# run.py
from dsalt import salt_core

print(salt_core(b"Hello World"))
print(salt_core("你好世界".encode()))
```

## Performance

For short utf-8 strings, latency should between 300-500ns on current CPUs.