Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wisdomenigma/triplicata
Triplicata Hash :tada:
https://github.com/wisdomenigma/triplicata
cryptography file hash
Last synced: 4 days ago
JSON representation
Triplicata Hash :tada:
- Host: GitHub
- URL: https://github.com/wisdomenigma/triplicata
- Owner: WisdomEnigma
- License: gpl-3.0
- Created: 2020-12-11T18:21:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-30T09:29:19.000Z (almost 4 years ago)
- Last Synced: 2023-03-04T00:18:56.840Z (over 1 year ago)
- Topics: cryptography, file, hash
- Language: Go
- Homepage: https://go.libhunt.com/triplicata-alternatives
- Size: 1.15 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Triplicata
Triplicata Hash###Code:###{
package main
import(
Britannica "github.com/WisdomDwarfs/Britannica/BritannicaMathematica"
codex "github.com/WisdomDwarfs/Triplicata/Mathematica"
"github.com/WisdomDwarfs/Triplicata/Model"
"fmt"
// "reflect"
// "strings"
)
var (
fileOp Britannica.FileOperations = Britannica.NewInstance()
Alice Britannica.CodexBritannica = Britannica.NewVault()
Codex codex.MathematicaAbstract = codex.Init()
)func main() {
file, err := fileOp.FileExist("iqbal"); if err != nil {
fmt.Println("Error", err)
return
}
fmt.Println(file)
f, err , hash := Alice.CodexMathematica(file); if err != nil {
fmt.Println("Error", err)
return
}
fmt.Println("File:", f)
dynamo := make([]*Model.Abstract, len(hash)-1)
// easy way to solve problem
for i, _ := range hash {
s1 := Codex.CreateTriplicata(hash[i])
code := Codex.ReduceSizeOf(s1); if code != nil{
dynamo = append(dynamo,code)
}
}
MoveLikeTurning(dynamo)
}func MoveLikeTurning(str []*Model.Abstract){
//s := make([]*Model.Abstract, len(str)-1)
if len(str)> 0 {
for i:=0; i < len(str)-1;i++ {
state := Codex.Nil(str[i]); if !state{
a := Codex.Value(str[i])
b := Codex.Value(str[i+1])
h := Codex.HashTriplicata(a,b)
fmt.Println(h)
}
// block := Codex.BlocksinLevel(str[i])
}
}
}
}
### OUTPUT[@:]
&{010d010d010d010d010d0000e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 3319 true 1}
&{005f005f005f005f005f0000e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 3320 true 1}
&{000300030003000300030000e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 3321 true 1}
&{060406040604060406040000e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 3322 true 1}