PHP 클래스 Thruway\Common\Utils

파일 보기 프로젝트 열기: voryx/thruway 1 사용 예제들

공개 메소드들

메소드 설명
checkPrecision ( ) Changes the Precision for PHP configs that default to less than 16
compat_pbkdf2 ( string $algo, string $password, string $salt, integer $iterations, integer $length, boolean $rawOutput = false ) : string Generate a PBKDF2 key derivation of a supplied password
getDerivedKey ( string $key, string $salt, integer $iterations = 1000, integer $keyLen = 32 ) : string Encode and get derived key
getUniqueId ( ) : mixed Generate a unique id for sessions and requests
uriIsValid ( $uri ) : boolean Strict URI Test

메소드 상세

checkPrecision() 공개 정적인 메소드

Changes the Precision for PHP configs that default to less than 16
public static checkPrecision ( )

compat_pbkdf2() 공개 정적인 메소드

This is a hash_pbkdf2() implementation for PHP versions 5.3 and 5.4.
또한 보기: https://gist.github.com/rsky/5104756
public static compat_pbkdf2 ( string $algo, string $password, string $salt, integer $iterations, integer $length, boolean $rawOutput = false ) : string
$algo string
$password string
$salt string
$iterations integer
$length integer
$rawOutput boolean
리턴 string

getDerivedKey() 공개 정적인 메소드

Encode and get derived key
public static getDerivedKey ( string $key, string $salt, integer $iterations = 1000, integer $keyLen = 32 ) : string
$key string
$salt string
$iterations integer
$keyLen integer
리턴 string

getUniqueId() 공개 정적인 메소드

Generate a unique id for sessions and requests
public static getUniqueId ( ) : mixed
리턴 mixed

uriIsValid() 공개 정적인 메소드

Strict URI Test
public static uriIsValid ( $uri ) : boolean
$uri
리턴 boolean