Documentation ¶
Index ¶
- Constants
- type ISecureInt
- type ISecureString
- type SecureInt
- func (i *SecureInt) AddWatcher(obs obs.Observer)
- func (i *SecureInt) Apply() ISecureInt
- func (i *SecureInt) Dec() ISecureInt
- func (i *SecureInt) Decrypt() int
- func (i *SecureInt) Get() int
- func (i *SecureInt) GetSelf() *SecureInt
- func (i *SecureInt) Inc() ISecureInt
- func (i *SecureInt) IsEquals(o ISecureInt) bool
- func (i *SecureInt) RandomizeKey()
- func (i *SecureInt) Set(value int) ISecureInt
- func (i *SecureInt) SetKey(key int)
- func (i *SecureInt) XOR(value int, Key int) int
- type SecureString
- func (i *SecureString) AddWatcher(obs obs.Observer)
- func (i *SecureString) Apply() ISecureString
- func (i *SecureString) Decrypt() []rune
- func (i *SecureString) Get() string
- func (i *SecureString) GetSelf() *SecureString
- func (i *SecureString) IsEquals(o ISecureString) bool
- func (i *SecureString) RandomizeKey()
- func (i *SecureString) Set(value string) ISecureString
- func (i *SecureString) SetKey(key int)
- func (i *SecureString) XOR(value []rune, key int) []rune
Constants ¶
View Source
const KEY int = 54343
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISecureInt ¶
type ISecureInt interface { Apply() ISecureInt AddWatcher(obs obs.Observer) SetKey(int) Inc() ISecureInt Dec() ISecureInt Set(int) ISecureInt Get() int GetSelf() *SecureInt Decrypt() int RandomizeKey() IsEquals(ISecureInt) bool }
func NewInt ¶
func NewInt(value int) ISecureInt
type ISecureString ¶
type ISecureString interface { Apply() ISecureString AddWatcher(obs obs.Observer) SetKey(int) Set(string) ISecureString Get() string GetSelf() *SecureString Decrypt() []rune RandomizeKey() IsEquals(ISecureString) bool }
func NewString ¶
func NewString(value string) ISecureString
type SecureInt ¶
type SecureInt struct { obs.Observable Key int RealValue int FakeValue int Initialized bool HackDetecting bool }
func (*SecureInt) AddWatcher ¶
func (*SecureInt) Apply ¶
func (i *SecureInt) Apply() ISecureInt
func (*SecureInt) Dec ¶
func (i *SecureInt) Dec() ISecureInt
func (*SecureInt) Inc ¶
func (i *SecureInt) Inc() ISecureInt
func (*SecureInt) IsEquals ¶
func (i *SecureInt) IsEquals(o ISecureInt) bool
func (*SecureInt) RandomizeKey ¶
func (i *SecureInt) RandomizeKey()
func (*SecureInt) Set ¶
func (i *SecureInt) Set(value int) ISecureInt
type SecureString ¶
type SecureString struct { obs.Observable Key int RealValue []rune FakeValue string Initialized bool HackDetecting bool }
func (*SecureString) AddWatcher ¶
func (i *SecureString) AddWatcher(obs obs.Observer)
func (*SecureString) Apply ¶
func (i *SecureString) Apply() ISecureString
func (*SecureString) Decrypt ¶
func (i *SecureString) Decrypt() []rune
func (*SecureString) Get ¶
func (i *SecureString) Get() string
func (*SecureString) GetSelf ¶
func (i *SecureString) GetSelf() *SecureString
func (*SecureString) IsEquals ¶
func (i *SecureString) IsEquals(o ISecureString) bool
func (*SecureString) RandomizeKey ¶
func (i *SecureString) RandomizeKey()
func (*SecureString) Set ¶
func (i *SecureString) Set(value string) ISecureString
func (*SecureString) SetKey ¶
func (i *SecureString) SetKey(key int)
Click to show internal directories.
Click to hide internal directories.