mirror of
https://github.com/php-win-ext/phpy.git
synced 2026-03-25 09:22:21 +01:00
167 lines
6.6 KiB
PHP
167 lines
6.6 KiB
PHP
<?php
|
||
namespace python;
|
||
|
||
use \PyModule;
|
||
use \PyCore;
|
||
|
||
/**
|
||
Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings*/
|
||
class base64{
|
||
private static ?PyModule $__module = null;
|
||
|
||
public static function __init(): void {
|
||
if (self::$__module == null) {
|
||
self::$__module = PyCore::import('base64');
|
||
self::$__spec__ = self::$__module->__spec__;
|
||
self::$_b32rev = self::$__module->_b32rev;
|
||
self::$_b32tab2 = self::$__module->_b32tab2;
|
||
self::$binascii = self::$__module->binascii;
|
||
self::$bytes_types = self::$__module->bytes_types;
|
||
self::$re = self::$__module->re;
|
||
self::$struct = self::$__module->struct;
|
||
}
|
||
}
|
||
|
||
public const MAXBINSIZE = 57;
|
||
public const MAXLINESIZE = 76;
|
||
|
||
public static $_A85END = "~>";
|
||
public static $_A85START = "<~";
|
||
public static $_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 static $_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 static $_B32_ENCODE_DOCSTRING = "\nEncode the bytes-like objects using {encoding} and return a bytes object.\n";
|
||
public static $__cached__ = "/opt/anaconda3/lib/python3.11/__pycache__/base64.cpython-311.pyc";
|
||
public static $__file__ = "/opt/anaconda3/lib/python3.11/base64.py";
|
||
public static $__name__ = "base64";
|
||
public static $__package__ = "";
|
||
public static $_a85chars = null;
|
||
public static $_a85chars2 = null;
|
||
public static $_b32alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
||
public static $_b32hexalphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUV";
|
||
public static $_b85alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~";
|
||
public static $_b85chars = null;
|
||
public static $_b85chars2 = null;
|
||
public static $_b85dec = null;
|
||
public static $_urlsafe_decode_translation = " |