!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/doc/python-crypto/   drwxr-xr-x
Free 129.72 GB of 142.11 GB (91.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Crypto.Protocol.Chaffing.Chaff-class.html (10.75 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Crypto.Protocol.Chaffing.Chaff
Package Crypto :: Package Protocol :: Module Chaffing :: Class Chaff
[hide private]
[frames] | no frames]

Class Chaff

Class implementing the chaff adding algorithm.

Methods for subclasses:

        _randnum(size):
            Returns a randomly generated number with a byte-length equal
            to size.  Subclasses can use this to implement better random
            data and MAC generating algorithms.  The default algorithm is
            probably not very cryptographically secure.  It is most
            important that the chaff data does not contain any patterns
            that can be used to discern it from wheat data without running
            the MAC.

Instance Methods [hide private]
 
__init__(self, factor=1.0, blocksper=1)
Chaff(factor:float, blocksper:int)
 
chaff(self, blocks)
chaff( [(serial-number:int, data:string, MAC:string)] ) : [(int, string, string)]
 
_randnum(self, size)
Method Details [hide private]

__init__(self, factor=1.0, blocksper=1)
(Constructor)

 
Chaff(factor:float, blocksper:int)

factor is the number of message blocks to add chaff to,
expressed as a percentage between 0.0 and 1.0.  blocksper is
the number of chaff blocks to include for each block being
chaffed.  Thus the defaults add one chaff block to every
message block.  By changing the defaults, you can adjust how
computationally difficult it could be for an adversary to
brute-force crack the message.  The difficulty is expressed
as:

    pow(blocksper, int(factor * number-of-blocks))

For ease of implementation, when factor < 1.0, only the first
int(factor*number-of-blocks) message blocks are chaffed.

chaff(self, blocks)

 
chaff( [(serial-number:int, data:string, MAC:string)] )
: [(int, string, string)]

Add chaff to message blocks.  blocks is a list of 3-tuples of the
form (serial-number, data, MAC).

Chaff is created by choosing a random number of the same
byte-length as data, and another random number of the same
byte-length as MAC.  The message block's serial number is
placed on the chaff block and all the packet's chaff blocks
are randomly interspersed with the single wheat block.  This
method then returns a list of 3-tuples of the same form.
Chaffed blocks will contain multiple instances of 3-tuples
with the same serial number, but the only way to figure out
which blocks are wheat and which are chaff is to perform the
MAC hash and compare values.



:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0085 ]--