-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.go
35 lines (29 loc) Β· 813 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package main
import (
"fmt"
"github.com/arshiamidos/generator_polynomial_galois/gpg"
"github.com/arshiamidos/qr/utils"
"github.com/arshiamidos/qr_presenter/painter"
)
func main() {
v := 1
e := 'L'
t := 'B'
m := utils.Byte{"arash midos 666"}
GPG1 := gpg.NewAntiLog(
utils.ConvertToMessagePoly(
utils.BreakUp8Bit(m.Data, m.Parse(), v, e, t)),
)
GPG1.SetGroupBlock(
utils.BreakUp8Bit(m.Data, m.Parse(), v, e, t),
utils.GetGroupBlock(v, e))
GPG1.SetGroupBlockECC(
utils.BreakUp8Bit(m.Data, m.Parse(), v, e, t),
utils.GetGroupBlock(v, e),
utils.GetECCWCount(v, e),
)
s := GPG1.Serialize(utils.GetGroupBlock(v, e)["GROUP1"][0]+utils.GetGroupBlock(v, e)["GROUP2"][0], v)
fmt.Println(s)
fmt.Println(GPG1.GroupBlockEC)
painter.PaintV(v,e, 10, s)
}