82 lines
1.5 KiB
Go
82 lines
1.5 KiB
Go
package spectre
|
|
|
|
// Template is a template type
|
|
type Template string
|
|
|
|
const (
|
|
Maximum Template = "Maximum"
|
|
Long Template = "Long"
|
|
Medium Template = "Medium"
|
|
Short Template = "Short"
|
|
Pin Template = "PIN"
|
|
Name Template = "Name"
|
|
Phrase Template = "Phrase"
|
|
Basic Template = "Basic"
|
|
)
|
|
|
|
var templates = map[Template][]string{
|
|
Maximum: {
|
|
"anoxxxxxxxxxxxxxxxxx",
|
|
"axxxxxxxxxxxxxxxxxno",
|
|
},
|
|
Long: {
|
|
"CvcvnoCvcvCvcv",
|
|
"CvcvCvcvnoCvcv",
|
|
"CvcvCvcvCvcvno",
|
|
"CvccnoCvcvCvcv",
|
|
"CvccCvcvnoCvcv",
|
|
"CvccCvcvCvcvno",
|
|
"CvcvnoCvccCvcv",
|
|
"CvcvCvccnoCvcv",
|
|
"CvcvCvccCvcvno",
|
|
"CvcvnoCvcvCvcc",
|
|
"CvcvCvcvnoCvcc",
|
|
"CvcvCvcvCvccno",
|
|
"CvccnoCvccCvcv",
|
|
"CvccCvccnoCvcv",
|
|
"CvccCvccCvcvno",
|
|
"CvcvnoCvccCvcc",
|
|
"CvcvCvccnoCvcc",
|
|
"CvcvCvccCvccno",
|
|
"CvccnoCvcvCvcc",
|
|
"CvccCvcvnoCvcc",
|
|
"CvccCvcvCvccno",
|
|
},
|
|
Medium: {
|
|
"CvcnoCvc",
|
|
"CvcCvcno",
|
|
},
|
|
Short: {
|
|
"Cvcn",
|
|
},
|
|
Pin: {
|
|
"nnnn",
|
|
},
|
|
Name: {
|
|
"cvccvcvcv",
|
|
},
|
|
Phrase: {
|
|
"cvcc cvc cvccvcv cvc",
|
|
"cvc cvccvcvcv cvcv",
|
|
"cv cvccv cvc cvcvccv",
|
|
},
|
|
Basic: {
|
|
"aaanaaan",
|
|
"aannaaan",
|
|
"aaannaaa",
|
|
},
|
|
}
|
|
|
|
var characters = map[string]string{
|
|
"V": "AEIOU",
|
|
"C": "BCDFGHJKLMNPQRSTVWXYZ",
|
|
"v": "aeiou",
|
|
"c": "bcdfghjklmnpqrstvwxyz",
|
|
"A": "AEIOUBCDFGHJKLMNPQRSTVWXYZ",
|
|
"a": "AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz",
|
|
"n": "0123456789",
|
|
"o": "@&%?,=[]_:-+*$#!'^~;()/.",
|
|
"x": "AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz0123456789!@#$%^&*()",
|
|
" ": " ",
|
|
}
|