Back to Joomla project (class list)

Class Base32 - list of methods

Base32 encryption class
Package: Joomla\CMS\Encrypt
Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Encrypt/Base32.php
Project: Joomla

Method Summary

private string
(mixed $str)

str2bin
Parameters
  • string $str The string you want to convert
Returns
  • string String of 0's and 1's
Show source code of this method: str2bin Source Code

private string
(mixed $str)

bin2str
Parameters
  • string $str The string of 0's and 1's you want to convert
Returns
  • string The ascii output
-
  • \Exception
Show source code of this method: bin2str Source Code

private string
(mixed $str)

fromBin
Parameters
  • string $str The string of 0's and 1's you want to convert
Returns
  • string String encoded as base32
-
  • \Exception
Show source code of this method: fromBin Source Code

private string
(mixed $str)

toBin
Parameters
  • string $str The base32 string to convert
Returns
  • string Ascii binary string
-
  • \Exception
Show source code of this method: toBin Source Code

public string
(mixed $str)

fromString
Parameters
  • string $str The string to convert
Returns
  • string The converted base32 string
Show source code of this method: encode Source Code

public string
(mixed $str)

toString
Parameters
  • string $str The base32 string to convert
Returns
  • string The normal string
Show source code of this method: decode Source Code

private string
(mixed $str)

_mapcharset
Parameters
  • string $str The string of 0's and 1's you want to convert
Returns
  • string Resulting base32 character
-
  • private
Show source code of this method: _mapcharset Source Code

private string
(mixed $chr)

_mapbin
Parameters
  • string $chr The character to map
Returns
  • string String of 0's and 1's
-
  • private
Show source code of this method: _mapbin Source Code

Constants Summary

public
$CSRFC3548
CSRFC3548

Tags Summary

Since
1.0