Documentation ¶
Index ¶
- Variables
- func Int32Deobfuscate(val int32, inverse, xor *big.Int) int32
- func Int32Obfuscate(val int32, prime, xor *big.Int) int32
- func Int64Deobfuscate(val int64, inverse, xor *big.Int) int64
- func Int64Obfuscate(val int64, prime, xor *big.Int) int64
- func Uint32Deobfuscate(val uint32, inverse, xor *big.Int) uint32
- func Uint32Obfuscate(val uint32, prime, xor *big.Int) uint32
- func Uint64Deobfuscate(val uint64, inverse, xor *big.Int) uint64
- func Uint64Obfuscate(val uint64, prime, xor *big.Int) uint64
- type Hide
- func (h *Hide) Int32Deobfuscate(i int32) int32
- func (h *Hide) Int32Obfuscate(i int32) int32
- func (h *Hide) Int64Deobfuscate(i int64) int64
- func (h *Hide) Int64Obfuscate(i int64) int64
- func (h *Hide) SetInt32(prime *big.Int) error
- func (h *Hide) SetInt64(prime *big.Int) error
- func (h *Hide) SetUint32(prime *big.Int) error
- func (h *Hide) SetUint64(prime *big.Int) error
- func (h *Hide) SetXor(xor *big.Int) error
- func (h *Hide) Uint32Deobfuscate(i uint32) uint32
- func (h *Hide) Uint32Obfuscate(i uint32) uint32
- func (h *Hide) Uint64Deobfuscate(i uint64) uint64
- func (h *Hide) Uint64Obfuscate(i uint64) uint64
- type Int32
- type Int64
- type Uint32
- type Uint64
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Int32Deobfuscate ¶
Int32Deobfuscate deobfuscates int32 provided as the 1st parameter using inverse provided as the second one. If the provided inverse is nil it will fall back to Default inverse
func Int32Obfuscate ¶
Int32Obfuscate obfuscates int32 provided as the 1st parameter using prime provided as the second one. If the provided prime is nil it will fall back to Default prime
func Int64Deobfuscate ¶
Int64Deobfuscate deobfuscates int64 provided as the 1st parameter using inverse provided as the second one. If the provided inverse is nil it will fall back to Default inverse
func Int64Obfuscate ¶
Int64Obfuscate obfuscates int64 provided as the 1st parameter using prime provided as the second one. If the provided prime is nil it will fall back to Default prime
func Uint32Deobfuscate ¶
Uint32Deobfuscate deobfuscates uint32 provided as the 1st parameter using inverse provided as the second one. If the provided inverse is nil it will fall back to Default inverse
func Uint32Obfuscate ¶
Uint32Obfuscate obfuscates uint32 provided as the 1st parameter using prime provided as the second one. If the provided prime is nil it will fall back to Default prime
func Uint64Deobfuscate ¶
Uint64Deobfuscate deobfuscates uint64 provided as the 1st parameter using inverse provided as the second one. If the provided inverse is nil it will fall back to Default inverse
Types ¶
type Hide ¶
type Hide struct {
// contains filtered or unexported fields
}
Hide stores primes and inverses used to obfuscate/deobfuscate different integer types
func (*Hide) Int32Deobfuscate ¶
func (*Hide) Int32Obfuscate ¶
func (*Hide) Int64Deobfuscate ¶
func (*Hide) Int64Obfuscate ¶
func (*Hide) Uint32Deobfuscate ¶
func (*Hide) Uint32Obfuscate ¶
func (*Hide) Uint64Deobfuscate ¶
func (*Hide) Uint64Obfuscate ¶
type Int32 ¶
type Int32 int32
Int32 is an alias of int32 with obfuscating/deobfuscating json marshaller
func (*Int32) MarshalJSON ¶
MarshalJSON satisfies json.Marshaller and transparently obfuscates the value using Default prime
func (*Int32) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Marshaller and transparently deobfuscates the value using inverse of Default prime
type Int64 ¶
type Int64 int64
Int64 is an alias of int64 with obfuscating/deobfuscating json marshaller
func (*Int64) MarshalJSON ¶
MarshalJSON satisfies json.Marshaller and transparently obfuscates the value using Default prime
func (*Int64) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Marshaller and transparently deobfuscates the value using inverse of Default prime
type Uint32 ¶
type Uint32 uint32
Uint32 is an alias of uint32 with obfuscating/deobfuscating json marshaller
func (*Uint32) MarshalJSON ¶
MarshalJSON satisfies json.Marshaller and transparently obfuscates the value using Default prime
func (*Uint32) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Marshaller and transparently deobfuscates the value using inverse of Default prime
type Uint64 ¶
type Uint64 uint64
Uint64 is an alias of uint64 with obfuscating/deobfuscating json marshaller
func (*Uint64) MarshalJSON ¶
MarshalJSON satisfies json.Marshaller and transparently obfuscates the value using Default prime
func (*Uint64) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Marshaller and transparently deobfuscates the value using inverse of Default prime