For example, Base64 (which is based on 6 bits per character) converts 3 raw bytes into 4 encoded characters. Default: FALSEīoolean $padFinalGroup It's common to encode characters in groups. ![]() For RFC 4648 encodings, $rightPadFinalBitsshould be TRUE. When FALSE, the final bits are placed in the least significant position. When TRUE, the bits to encode are placed in the most significant position of the final group of bits, with the lower bits set to 0. Default: FALSEīoolean $rightPadFinalBits How to encode the last character when the bits remaining are fewer than $bitsPerCharacter. Default: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_īoolean $caseSensitive To decode in a case-sensitive manner. String $chars This string specifies the base alphabet. ![]() The encoding's radix is a power of 2: 2^$bitsPerCharacter. The number of bits to use for each encoded character 1–8. MVXGG33EMUQHI2DJOM= Constructor Parameters ![]() $encoded = $base32-> encode( 'encode this') RFC 4648 base32 alphabet case-insensitive $base32 = new Base2n( 5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', FALSE, TRUE, TRUE)
0 Comments
Leave a Reply. |