Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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:

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}