README ¶ gocipher cipher based on masscan the cipher allows to visit all the elements of a finite space only once in a pseudo-random way Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type GoCipher func New(rangez, seed int64) *GoCipher func (gocipher *GoCipher) F(j, r, seed int64) int64 func (gocipher *GoCipher) Fe(r, a, b, m, seed int64) int64 func (gocipher *GoCipher) Shuffle(m int64) int64 func (gocipher *GoCipher) UnShuffle(m int64) int64 func (gocipher *GoCipher) Unfe(r, a, b, m, seed int64) int64 Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type GoCipher ¶ type GoCipher struct { Rounds int64 Seed int64 Range int64 A int64 B int64 } func New ¶ func New(rangez, seed int64) *GoCipher func (*GoCipher) F ¶ func (gocipher *GoCipher) F(j, r, seed int64) int64 Inner permutation function func (*GoCipher) Fe ¶ func (gocipher *GoCipher) Fe(r, a, b, m, seed int64) int64 Outer feistal construction func (*GoCipher) Shuffle ¶ func (gocipher *GoCipher) Shuffle(m int64) int64 func (*GoCipher) UnShuffle ¶ func (gocipher *GoCipher) UnShuffle(m int64) int64 func (*GoCipher) Unfe ¶ func (gocipher *GoCipher) Unfe(r, a, b, m, seed int64) int64 Outer reverse feistal construction Source Files ¶ View all Source files gocipher.go Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.