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.
- Host: GitHub
- URL: https://github.com/goodmanwen/dynamic_salt
- Owner: GoodManWEN
- License: mit
- Created: 2021-03-21T22:54:01.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-22T23:07:14.000Z (about 5 years ago)
- Last Synced: 2025-02-09T20:41:28.678Z (over 1 year ago)
- Language: Rust
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dynamic Salt
[](https://github.com/GoodManWEN/dynamic_salt/blob/master/LICENSE)
[](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.