FOF30\Encrypt\Base32::decode PHP Method

decode() public method

..
public decode ( string $str ) : string
$str string The base32 string to convert
return string The normal string
    public function decode($str)
    {
        $str = strtoupper($str);
        return $this->bin2str($this->tobin($str));
    }

Usage Example

Example #1
0
 public function testDecodeWithCrapData()
 {
     $this->setExpectedException('\\Exception');
     $this->base32->decode('Crap data');
 }