gotrie

command module
v0.0.0-...-300735a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

README

gotrie

Build FrozenTrie

  err,FT := trie.Build("./td.txt","./rd.txt","./basicconfig.json","./filetag.json")

Create URLencoded Base64 string

  param := []string{"AMI","CQT","EOK","MTF"}		
  
  usr_flag := FT.CreateUrlEncodedflag(param)         ######   input 3character unique string of blacklist file name
  
  fmt.Println(usr_flag)
  
  #########  following will be output as URL encoded base64 string
  
  6IeA6ICA4oCAxIAE

Unique filename frm User flag

  fmt.Println(FT.Urlenc_to_flag("6IeA6ICA4oCAxIAE"))      ###### input URLencoded base64 user flag string
  
  #########  following will be output as list of string
  
  [AMI CQT EOK MTF]

Domain Name lookup in Trie

  text := "alltereg0.ru"
  
  usr_flag := "6IeA6ICA4oCAxIAE"
  
  FT.DNlookup(text,usr_flag)
  
  #########  following will be output as (boolean, list of string)
    
  true [EOK AMI]
  
  text := "google.com"
  
  usr_flag := "6IeA6ICA4oCAxIAE"
  
  FT.DNlookup(text,usr_flag)
  
  #########  following will be output as (boolean, list of string)
  
  false []

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL