FOF30\Encrypt\Base32::decode PHP 메소드

decode() 공개 메소드

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

Usage Example

예제 #1
0
파일: Base32Test.php 프로젝트: Joal01/fof
 public function testDecodeWithCrapData()
 {
     $this->setExpectedException('\\Exception');
     $this->base32->decode('Crap data');
 }