[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/paragonie/constant_time_encoding/src/ -> Hex.php (summary)

Copyright (c) 2016 - 2022 Paragon Initiative Enterprises. Copyright (c) 2014 Steve "Sc00bz" Thomas (steve at tobtu dot com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

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

Defines 3 functions

  encode()
  encodeUpper()
  decode()

Functions
Functions that are not part of a class:

encode(string $binString)   X-Ref
Convert a binary string into a hexadecimal string without cache-timing
leaks

return: string
param: string $binString (raw binary)

encodeUpper(string $binString)   X-Ref
Convert a binary string into a hexadecimal string without cache-timing
leaks, returning uppercase letters (as per RFC 4648)

return: string
param: string $binString (raw binary)

decode(string $encodedString,bool $strictPadding = false)   X-Ref
Convert a hexadecimal string into a binary string without cache-timing
leaks

return: string (raw binary)
param: string $encodedString
param: bool $strictPadding