Robert 5 months ago
parent 6bf939a9eb
commit e5d7dc4bbb
  1. 2
      .gitignore
  2. 6
      README.MD
  3. 2
      create_db.go
  4. 2
      go.mod
  5. 2
      go.sum
  6. 2
      readData.go

2
.gitignore vendored

@ -1,3 +1,3 @@
english_words.db
rnd-english
*.txt
*.db

@ -7,6 +7,10 @@ $ go get github.com/mattn/go-sqlite3
$ shuf /usr/share/dict/american-english > rnd-english
$ go run create_db.go
```
## How to add another dictionary
```
$ go run create_db.go -db-update -dict mywordslist.txt
```
### Passwords are ONLY for custom words not in the dictionary
### Enter one keyword at a time for security!!
## Create encoded data
@ -14,4 +18,4 @@ $ go run writeData.go -pwd MyPa$$word
## Fetch data from encodings
$ go run readData.go -pwd MyPa$$word
## Share your rnd-english dictionary with others to be able to see the data.
## Share your english_words.db dictionary database with others to be able to view your comments...

@ -24,7 +24,7 @@ var topEnglishWords = []string{
"all", "there", "when", "up", "use", "your", "how", "said", "an",
"each", "she", "which", "do", "their", "time", "if", "will", "way",
"about", "many", "then", "them", "write", "would", "like", "so", "these",
"here", "me", "make", "day", "where", "give", "now", "just",
"here", "me", "make", "where", "give", "now", "just",
}
var commonSymbols = []string{

@ -2,4 +2,4 @@ module xorWords
go 1.20
require github.com/mattn/go-sqlite3 v1.14.19 // indirect
require github.com/mattn/go-sqlite3 v1.14.28 // indirect

@ -1,2 +1,4 @@
github.com/mattn/go-sqlite3 v1.14.19 h1:fhGleo2h1p8tVChob4I9HpmVFIAkKGpiukdrgQbWfGI=
github.com/mattn/go-sqlite3 v1.14.19/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
github.com/mattn/go-sqlite3 v1.14.28 h1:ThEiQrnbtumT+QMknw63Befp/ce/nUPgBPMlRFEum7A=
github.com/mattn/go-sqlite3 v1.14.28/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=

@ -54,7 +54,7 @@ func main() {
defer file.Close()
symbols := []string{
".", ",", "!", ";", "?", "(", ")", "'", "\"",
".", ",", "!", ";", "?", "(", ")", "'", "\"", "...", ":", "*", "$", "@", "#", "%",
}
// Create a scanner to read the file line by line

Loading…
Cancel
Save