mirror of
https://github.com/php-win-ext/phpy.git
synced 2026-03-26 01:42:09 +01:00
151 lines
4.2 KiB
PHP
151 lines
4.2 KiB
PHP
<?php
|
||
namespace python;
|
||
|
||
/**
|
||
Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings*/
|
||
class base64{
|
||
/**
|
||
* @return base64
|
||
*/
|
||
public static function import()
|
||
{
|
||
return \PyCore::import('base64');
|
||
}
|
||
public $MAXBINSIZE = 57;
|
||
public $MAXLINESIZE = 76;
|
||
|
||
public $_A85END = "~>";
|
||
public $_A85START = "<~";
|
||
public $_B32_DECODE_DOCSTRING = "\nDecode the {encoding} encoded bytes-like object or ASCII string s.\n\nOptional casefold is a flag specifying whether a lowercase alphabet is\nacceptable as input. For security purposes, the default is False.\n{extra_args}\nThe result is returned as a bytes object. A binascii.Error is raised if\nthe input is incorrectly padded or if there are non-alphabet\ncharacters present in the input.\n";
|
||
public $_B32_DECODE_MAP01_DOCSTRING = "\nRFC 3548 allows for optional mapping of the digit 0 (zero) to the\nletter O (oh), and for optional mapping of the digit 1 (one) to\neither the letter I (eye) or letter L (el). The optional argument\nmap01 when not None, specifies which letter the digit 1 should be\nmapped to (when map01 is not None, the digit 0 is always mapped to\nthe letter O). For security purposes the default is None, so that\n0 and 1 are not allowed in the input.\n";
|
||
public $_B32_ENCODE_DOCSTRING = "\nEncode the bytes-like objects using {encoding} and return a bytes object.\n";
|
||
public $__name__ = "base64";
|
||
public $__package__ = "";
|
||
public $_a85chars = null;
|
||
public $_a85chars2 = null;
|
||
public $_b32alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
||
public $_b32hexalphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUV";
|
||
public $_b85alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~";
|
||
public $_b85chars = null;
|
||
public $_b85chars2 = null;
|
||
public $_b85dec = null;
|
||
public $_urlsafe_decode_translation = " |