[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Encrypt/ -> Base32.php (summary)

Joomla! Content Management System

Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 220 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Base32:: (8 methods):
  str2bin()
  bin2str()
  fromBin()
  toBin()
  encode()
  decode()
  _mapcharset()
  _mapbin()


Class: Base32  - X-Ref

Base32 encryption class

str2bin($str)   X-Ref
str2bin

Converts any ascii string to a binary string

param: string  $str  The string you want to convert
return: string  String of 0's and 1's

bin2str($str)   X-Ref
bin2str

Converts a binary string to an ascii string

param: string  $str  The string of 0's and 1's you want to convert
return: string  The ascii output

fromBin($str)   X-Ref
fromBin

Converts a correct binary string to base32

param: string  $str  The string of 0's and 1's you want to convert
return: string  String encoded as base32

toBin($str)   X-Ref
toBin

Accepts a base32 string and returns an ascii binary string

param: string  $str  The base32 string to convert
return: string  Ascii binary string

encode($str)   X-Ref
fromString

Convert any string to a base32 string
This should be binary safe...

param: string  $str  The string to convert
return: string  The converted base32 string

decode($str)   X-Ref
toString

Convert any base32 string to a normal sctring
This should be binary safe...

param: string  $str  The base32 string to convert
return: string  The normal string

_mapcharset($str)   X-Ref
_mapcharset

Used with array_map to map the bits from a binary string
directly into a base32 character set

param: string  $str  The string of 0's and 1's you want to convert
return: string  Resulting base32 character

_mapbin($chr)   X-Ref
_mapbin

Used with array_map to map the characters from a base32
character set directly into a binary string

param: string  $chr  The character to map
return: string  String of 0's and 1's



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