Documentation

Encrypt
in

加密/字符串处理 Encrypt or String

Table of Contents

$itoa64
$iterationCount
$portableHashes
$randomState
$types
$random_state
__construct() mixed
shortId() mixed
minId() mixed
longId() mixed
radomNum() mixed
timeId() mixed
radomCode() mixed
hashID() 生成hashID Generate hashID string
dictZip() mixed
LetterToNumber() mixed
intervalMosaic() mixed
mirrorMosaic() mixed
middleMosaic() mixed
isNumber() mixed
ASJsonEncode() mixed
ASJsonDecode() mixed
convertCNtoNumber() mixed
convertValue() mixed
convertBreak() mixed
sign() mixed
getRandomBytes() mixed
encode64() mixed
gensaltPrivate() mixed
cryptPrivate() mixed
gensaltExtended() mixed
gensaltBlowfish() mixed
hashPassword() mixed
checkPassword() mixed

Properties

$iterationCount

public mixed $iterationCount

$portableHashes

public mixed $portableHashes

$randomState

public mixed $randomState

$types

public static mixed $types = ['ASJson', 'JSON', 'json', 'INT', 'int', 'INTEGER', 'integer', 'DOUBLE', 'double', 'FLOAT', 'float', 'BOOL', 'BOOLEAN', 'bool', 'boolean', 'NULL', 'null', 'STRING', 'string']

$random_state

private mixed $random_state

Methods

__construct()

public __construct( [ $iterationCount : mixed = false ] [, $portableHashes : mixed = false ] ) : mixed
Parameters
$iterationCount : mixed = false
$portableHashes : mixed = false
Return values
mixed

shortId()

public static shortId( [ $n : mixed = 16 ] ) : mixed
Parameters
$n : mixed = 16
Return values
mixed

minId()

public static minId( [ $n : mixed = 64 ] ) : mixed
Parameters
$n : mixed = 64
Return values
mixed

longId()

public static longId( [ $n : mixed = 128 ] ) : mixed
Parameters
$n : mixed = 128
Return values
mixed

radomNum()

public static radomNum( [ $n : mixed = 511 ] ) : mixed
Parameters
$n : mixed = 511
Return values
mixed

timeId()

public static timeId( [ $alis : mixed = NULL ] ) : mixed
Parameters
$alis : mixed = NULL
Return values
mixed

radomCode()

public static radomCode( [ $n : mixed = 512 ] ) : mixed
Parameters
$n : mixed = 512
Return values
mixed

hashID()

生成hashID Generate hashID

public static hashID( $params : mixed [, $signal : string = ":" ] ) : string
Parameters
$params : mixed

请求参数

$signal : string = ":"

连接符

Return values
string

hashID

dictZip()

public static dictZip( $input : string ) : mixed
Parameters
$input : string
Return values
mixed

LetterToNumber()

public static LetterToNumber( $letter : mixed ) : mixed
Parameters
$letter : mixed
Return values
mixed

intervalMosaic()

public static intervalMosaic( $input : string [, $odd : bool = true ] ) : mixed
Parameters
$input : string
$odd : bool = true
Return values
mixed

mirrorMosaic()

public static mirrorMosaic( $input : string [, $left : bool = true ] ) : mixed
Parameters
$input : string
$left : bool = true
Return values
mixed

middleMosaic()

public static middleMosaic( $input : string [, $middle : bool = true ] ) : mixed
Parameters
$input : string
$middle : bool = true
Return values
mixed

isNumber()

public static isNumber( $input : mixed ) : mixed
Parameters
$input : mixed
Return values
mixed

ASJsonEncode()

public static ASJsonEncode( $value : mixed [, $sub : bool = false ] ) : mixed
Parameters
$value : mixed
$sub : bool = false
Return values
mixed

ASJsonDecode()

public static ASJsonDecode( $ASJson : mixed ) : mixed
Parameters
$ASJson : mixed
Return values
mixed

convertCNtoNumber()

public static convertCNtoNumber( $cnNumber : string ) : mixed
Parameters
$cnNumber : string
Return values
mixed

convertValue()

public static convertValue( $type : string [, $value : mixed = NULL ] ) : mixed
Parameters
$type : string
$value : mixed = NULL
Return values
mixed

convertBreak()

public static convertBreak( $input : string ) : mixed
Parameters
$input : string
Return values
mixed

sign()

public static sign( [ $name : mixed = false ] ) : mixed
Parameters
$name : mixed = false
Return values
mixed

getRandomBytes()

public getRandomBytes( $count : mixed ) : mixed
Parameters
$count : mixed
Return values
mixed

encode64()

public encode64( $input : mixed , $count : mixed ) : mixed
Parameters
$input : mixed
$count : mixed
Return values
mixed

gensaltPrivate()

public gensaltPrivate( $input : mixed ) : mixed
Parameters
$input : mixed
Return values
mixed

cryptPrivate()

public cryptPrivate( $password : mixed , $setting : mixed ) : mixed
Parameters
$password : mixed
$setting : mixed
Return values
mixed

gensaltExtended()

public gensaltExtended( $input : mixed ) : mixed
Parameters
$input : mixed
Return values
mixed

gensaltBlowfish()

public gensaltBlowfish( $input : mixed ) : mixed
Parameters
$input : mixed
Return values
mixed

hashPassword()

public hashPassword( $password : mixed ) : mixed
Parameters
$password : mixed
Return values
mixed

checkPassword()

public checkPassword( $password : mixed , $storedHash : mixed ) : mixed
Parameters
$password : mixed
$storedHash : mixed
Return values
mixed

Search results