PHP 클래스 PrivateBin\Filter

Provides data filtering functions.
파일 보기 프로젝트 열기: privatebin/privatebin 1 사용 예제들

공개 메소드들

메소드 설명
formatHumanReadableSize ( integer $size ) : string format a given number of bytes in IEC 80000-13:2008 notation (localized)
formatHumanReadableTime ( string $time ) : string format a given time string into a human readable label (localized)
slowEquals ( string $a, string $b ) : boolean fixed time string comparison operation to prevent timing attacks https://crackstation.net/hashing-security.htm?=rd#slowequals
stripslashesDeep ( mixed $value ) : mixed strips slashes deeply

메소드 상세

formatHumanReadableSize() 공개 정적인 메소드

format a given number of bytes in IEC 80000-13:2008 notation (localized)
public static formatHumanReadableSize ( integer $size ) : string
$size integer
리턴 string

formatHumanReadableTime() 공개 정적인 메소드

accepts times in the format "[integer][time unit]"
public static formatHumanReadableTime ( string $time ) : string
$time string
리턴 string

slowEquals() 공개 정적인 메소드

fixed time string comparison operation to prevent timing attacks https://crackstation.net/hashing-security.htm?=rd#slowequals
public static slowEquals ( string $a, string $b ) : boolean
$a string
$b string
리턴 boolean

stripslashesDeep() 공개 정적인 메소드

strips slashes deeply
public static stripslashesDeep ( mixed $value ) : mixed
$value mixed
리턴 mixed