Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegexCipherFactory = regexp.MustCompile(`(?s)var (\w+)={(\w+:function\([\w,]*?\){.*?},?)+}`) RegexCipherSteps = regexp.MustCompile(`(?s)\w+?=function\(\w+?\){\w+?=\w+?\.split\(""\);((?:\w+?\.\w+?\(\w+?(?:,\d+?)?\);)*)return \w+?.join\(""\)};`) RegexCipherMethod = regexp.MustCompile(`(?s)\w+?\.(\w+?)\(\w+?(?:,(\d+?))?\)`) RegexSliceOp = regexp.MustCompile(`(?s)function\(\w+,\w+\){\w+\.splice\(0,\w+\)}`) RegexReverseOp = regexp.MustCompile(`(?s)function\(\w+\){\w+\.reverse\(\)}`) RegexSwapOp = regexp.MustCompile(`(?s)function\(\w+,\w+\){var \w+=\w+\[0];\w+\[0]=\w+\[\w+%\w+\.length];\w+\[\w+%\w+\.length]=\w+}`) )
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher []Step
func LookupCipher ¶
func LookupCipher(f CipherFactory, script string) (Cipher, error)
type CipherFactory ¶
type CipherFactory struct {
// contains filtered or unexported fields
}
func LookupCipherFactory ¶
func LookupCipherFactory(script string) (CipherFactory, error)
Click to show internal directories.
Click to hide internal directories.