Update Picocrypt.go
This commit is contained in:
parent
ce9e7f5065
commit
f4cfc4f942
|
@ -83,8 +83,8 @@ var splitUnits = []string{
|
||||||
}
|
}
|
||||||
var splitSelected int32
|
var splitSelected int32
|
||||||
var items = []string{
|
var items = []string{
|
||||||
"Normal",
|
"Normal (4 passes)",
|
||||||
"Paranoid",
|
"Paranoid (Still in development, don't use)",
|
||||||
}
|
}
|
||||||
var itemSelected int32
|
var itemSelected int32
|
||||||
var shredProgress float32
|
var shredProgress float32
|
||||||
|
@ -254,7 +254,7 @@ func startUI(){
|
||||||
g.Checkbox("Keep decrypted output even if it's corrupted or modified",&keep),
|
g.Checkbox("Keep decrypted output even if it's corrupted or modified",&keep),
|
||||||
g.Checkbox("Securely shred the original file(s) and folder(s)",&erase),
|
g.Checkbox("Securely shred the original file(s) and folder(s)",&erase),
|
||||||
g.Row(
|
g.Row(
|
||||||
g.Checkbox("Encode with Reed-Solomon to prevent corruption",&reedsolo),
|
g.Checkbox("(Not finished yet) Encode with Reed-Solomon to prevent corruption",&reedsolo),
|
||||||
g.Button("?").OnClick(func(){
|
g.Button("?").OnClick(func(){
|
||||||
browser.OpenURL("https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction")
|
browser.OpenURL("https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction")
|
||||||
}),
|
}),
|
||||||
|
@ -1170,7 +1170,7 @@ func work(){
|
||||||
|
|
||||||
//tmp = tmp[:len(tmp)-16]
|
//tmp = tmp[:len(tmp)-16]
|
||||||
var chunk []byte
|
var chunk []byte
|
||||||
//fmt.Println("<Nonces>")
|
|
||||||
for i,j := range(tmp){
|
for i,j := range(tmp){
|
||||||
chunk = append(chunk,j)
|
chunk = append(chunk,j)
|
||||||
if (i+1)%24==0{
|
if (i+1)%24==0{
|
||||||
|
@ -1180,7 +1180,7 @@ func work(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fout.Write(rsEncode(_mac,rs16_128,144))
|
fout.Write(rsEncode(_mac,rs16_128,144))
|
||||||
//fmt.Println("</Nonces>")
|
|
||||||
}else{
|
}else{
|
||||||
//fmt.Println("crcHash: ",crcHash)
|
//fmt.Println("crcHash: ",crcHash)
|
||||||
//fmt.Println("crc.Sum: ",crc.Sum(nil))
|
//fmt.Println("crc.Sum: ",crc.Sum(nil))
|
||||||
|
|
Loading…
Reference in New Issue