[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/paragonie/constant_time_encoding/src/ -> Encoding.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: 262 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 18 functions

  base32Encode()
  base32EncodeUpper()
  base32Decode()
  base32DecodeUpper()
  base32HexEncode()
  base32HexEncodeUpper()
  base32HexDecode()
  base32HexDecodeUpper()
  base64Encode()
  base64Decode()
  base64EncodeDotSlash()
  base64DecodeDotSlash()
  base64EncodeDotSlashOrdered()
  base64DecodeDotSlashOrdered()
  hexEncode()
  hexDecode()
  hexEncodeUpper()
  hexDecodeUpper()

Functions
Functions that are not part of a class:

base32Encode(string $str)   X-Ref
RFC 4648 Base32 encoding

return: string
param: string $str

base32EncodeUpper(string $str)   X-Ref
RFC 4648 Base32 encoding

return: string
param: string $str

base32Decode(string $str)   X-Ref
RFC 4648 Base32 decoding

return: string
param: string $str

base32DecodeUpper(string $str)   X-Ref
RFC 4648 Base32 decoding

return: string
param: string $str

base32HexEncode(string $str)   X-Ref
RFC 4648 Base32 encoding

return: string
param: string $str

base32HexEncodeUpper(string $str)   X-Ref
RFC 4648 Base32Hex encoding

return: string
param: string $str

base32HexDecode(string $str)   X-Ref
RFC 4648 Base32Hex decoding

return: string
param: string $str

base32HexDecodeUpper(string $str)   X-Ref
RFC 4648 Base32Hex decoding

return: string
param: string $str

base64Encode(string $str)   X-Ref
RFC 4648 Base64 encoding

return: string
param: string $str

base64Decode(string $str)   X-Ref
RFC 4648 Base64 decoding

return: string
param: string $str

base64EncodeDotSlash(string $str)   X-Ref
Encode into Base64

Base64 character set "./[A-Z][a-z][0-9]"
return: string
param: string $str

base64DecodeDotSlash(string $str)   X-Ref
Decode from base64 to raw binary

Base64 character set "./[A-Z][a-z][0-9]"

return: string
param: string $str

base64EncodeDotSlashOrdered(string $str)   X-Ref
Encode into Base64

Base64 character set "[.-9][A-Z][a-z]" or "./[0-9][A-Z][a-z]"
return: string
param: string $str

base64DecodeDotSlashOrdered(string $str)   X-Ref
Decode from base64 to raw binary

Base64 character set "[.-9][A-Z][a-z]" or "./[0-9][A-Z][a-z]"

return: string
param: string $str

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

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

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

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

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

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

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

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