Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myomikron/gorcp
Implemention of RCP in go
https://github.com/myomikron/gorcp
Last synced: 19 days ago
JSON representation
Implemention of RCP in go
- Host: GitHub
- URL: https://github.com/myomikron/gorcp
- Owner: myOmikron
- License: gpl-2.0
- Created: 2022-03-10T13:55:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-17T19:39:49.000Z (over 2 years ago)
- Last Synced: 2024-06-20T00:41:13.880Z (5 months ago)
- Language: Go
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gorcp
![Coverage](https://img.shields.io/badge/Coverage-100.0%25-brightgreen)Implemention of [RCP](https://github.com/myOmikron/rcp) in go
## Usage
```go
// Config is used to create a checksum as well as validate a checksum
config := &RCPConfig{
UseTimeComponent: true,
SharedSecret: "Shared Secret Key",
TimeDelta: 5,
}m := make(map[string]string)
m["key1"] = "value1"
m["key2"] = "value2"// Get the checksum for a given dictionary
checksum := GetChecksum(&m, "TestSalt", config)// Validate a given checksum
if !ValidateChecksum(&m, checksum, "TestSalt", config) {
fmt.Println("Checksum was incorrect")
}
```