Silla.IO API
  • Namespace
  • Class
  • Tree
  • Todo
  • Download

Namespaces

  • App
    • Controllers
  • CMS
    • Controllers
    • Helpers
    • Models
  • Configurations
    • CI
    • Development
    • Production
    • Staging
  • Core
    • Base
    • CLI
      • Cache
      • DB
    • Helpers
    • Modules
      • Cache
        • Adapters
        • Interfaces
      • Crypt
      • DB
        • Adapters
        • Decorators
          • Interfaces
        • Features
          • Paginator
        • Interfaces
      • Registry
      • Render
        • Adapters
        • Interfaces
      • Router
      • Session
        • Adapters
        • Interfaces
  • None
  • Tasks
    • DB

Classes

  • Crypt
  • PasswordHash

Class PasswordHash

Class PasswordHash definition.

Namespace: Core\Modules\Crypt
Located at modules/crypt/passwordhash.php

Methods summary

public
# __construct( integer $iterationCountLog2, mixed $portableHashes )

Init actions.

Init actions.

Parameters

$iterationCountLog2
Iteration count for log2.
$portableHashes
Portable hashes.
public string
# getRandomBytes( integer $count )

Gets random bytes.

Gets random bytes.

Parameters

$count
Count number.

Returns

string
public string
# encode64( string $input, integer $count )

Encodes in 64 bits.

Encodes in 64 bits.

Parameters

$input
Input string.
$count
Count number.

Returns

string
public string
# gensaltPrivate( string $input )

Generates salt.

Generates salt.

Parameters

$input
Input string.

Returns

string
public string
# cryptPrivate( string $password, string $setting )

Encryption action.

Encryption action.

Parameters

$password
Passphrase.
$setting
Additional settings.

Returns

string
public string
# gensaltExtended( string $input )

Extended salt generation.

Extended salt generation.

Parameters

$input
Input string.

Returns

string
public string
# gensaltBlowfish( string $input )

Blowfish salt generation.

Blowfish salt generation.

Parameters

$input
Input string.

Returns

string
public string
# hashPassword( string $password )

Hashing action.

Hashing action.

Parameters

$password
Passphrase string.

Returns

string
public boolean
# checkPassword( string $password, string $stored_hash )

Verifies validity action.

Verifies validity action.

Parameters

$password
Passphrase string.
$stored_hash
Hash string.

Returns

boolean

Properties summary

public string $itoa64

Itoa64.

Itoa64.

#
public integer $iterationCountLog2

Iteration count for log2.

Iteration count for log2.

#
public mixed $portableHashes

Portable hashes.

Portable hashes.

#
public string $randomState

Random state.

Random state.

#
Silla.IO API API documentation generated by ApiGen