[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/defuse/php-encryption/src/ -> Encoding.php (summary)

(no description)

File Size: 269 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  binToHex()
  hexToBin()
  trimTrailingWhitespace()
  saveBytesToChecksummedAsciiSafeString()
  loadBytesFromChecksummedAsciiSafeString()

Functions
Functions that are not part of a class:

binToHex($byte_string)   X-Ref
Converts a byte string to a hexadecimal string without leaking
information through side channels.

param: string $byte_string
return: string

hexToBin($hex_string)   X-Ref
Converts a hexadecimal string into a byte string without leaking
information through side channels.

param: string $hex_string
return: string

trimTrailingWhitespace($string = '')   X-Ref
Remove trialing whitespace without table look-ups or branches.

Calling this function may leak the length of the string as well as the
number of trailing whitespace characters through side-channels.

param: string $string
return: string

saveBytesToChecksummedAsciiSafeString($header, $bytes)   X-Ref
INTERNAL USE ONLY: Applies a version header, applies a checksum, and
then encodes a byte string into a range of printable ASCII characters.

param: string $header
param: string $bytes
return: string

loadBytesFromChecksummedAsciiSafeString($expected_header, $string)   X-Ref
INTERNAL USE ONLY: Decodes, verifies the header and checksum, and returns
the encoded byte string.

param: string $expected_header
param: string $string
return: string



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer