Versions in this module Expand all Collapse all v1 v1.0.0 Mar 10, 2024 Changes in this version + var RegexCipherFactory = regexp.MustCompile(`(?s)var (\w+)={(\w+:function\([\w,]*?\){.*?},?)+}`) + var RegexCipherMethod = regexp.MustCompile(`(?s)\w+?\.(\w+?)\(\w+?(?:,(\d+?))?\)`) + var RegexCipherSteps = regexp.MustCompile(...) + var RegexReverseOp = regexp.MustCompile(`(?s)function\(\w+\){\w+\.reverse\(\)}`) + var RegexSliceOp = regexp.MustCompile(`(?s)function\(\w+,\w+\){\w+\.splice\(0,\w+\)}`) + var RegexSwapOp = regexp.MustCompile(...) + type Cipher []Step + func LookupCipher(f CipherFactory, script string) (Cipher, error) + func (cipher Cipher) Decode(s string) string + type CipherFactory struct + func LookupCipherFactory(script string) (CipherFactory, error) + type Step func(s []byte) []byte + type StepType uint8 + const ReverseOp + const SliceOp + const SwapOp + func (c StepType) Instruction(param int) Step + func (c StepType) String() string