\MainWP\ChildMainWP_Child_Keys_Manager

Class MainWP_Child_Keys_Manager

Summary

Methods
Properties
Constants
instance()
get_class_name()
get_key_val()
get_sodium_key()
encrypt_string()
decrypt_string()
get_encrypted_option()
hook_get_encrypted_option()
update_encrypted_option()
valid_phpseclib3_supported()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$instance
N/A

Properties

$instance

$instance : mixed

Private static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

instance()

instance() : \MainWP\Child\Instance

Method instance()

Create a public static instance.

Returns

\MainWP\Child\Instance —

class.

get_class_name()

get_class_name() : object

Method get_class_name()

Get Class Name.

Returns

object —

Class name.

get_key_val()

get_key_val(string  $scheme = 'auth', integer  $length = 16) : string

Method get_key_val()

Get salt value.

Parameters

string $scheme

scheme key.

integer $length

length of key.

Returns

string —

Decrypt value.

get_sodium_key()

get_sodium_key() : string

Method get_sodium_key()

Get key value for sodium.

Returns

string —

key value.

encrypt_string()

encrypt_string(mixed  $keypass) : string

Method encrypt_string()

Handle encrypt string.

Parameters

mixed $keypass

The value to encrypt.

Returns

string —

Encrypted value.

decrypt_string()

decrypt_string(mixed  $encodedValue) : string

Method decrypt_string()

Handle decrypt value.

Parameters

mixed $encodedValue

The value to decrypt.

Returns

string —

Decrypt value.

get_encrypted_option()

get_encrypted_option(string  $option, mixed  $def_value = false) : string

Method get_encrypted_option()

Handle get encrypted value.

Parameters

string $option

option name.

mixed $def_value

default value (option), default: false.

Returns

string —

Decrypt value.

hook_get_encrypted_option()

hook_get_encrypted_option(string  $empty_value, string  $option, mixed  $def_value = false) : string

Method hook_get_encrypted_option()

Handle get encrypted option value.

Parameters

string $empty_value

empty input value.

string $option

option name.

mixed $def_value

default value (option), default: false.

Returns

string —

Decrypt value.

update_encrypted_option()

update_encrypted_option(string  $option, string  $value) : boolean

Method update_encrypted_option()

Handle update encrypted value.

Parameters

string $option

option name.

string $value

option value.

Returns

boolean —

true|false updated success or failed.

valid_phpseclib3_supported()

valid_phpseclib3_supported() : boolean

Method valid_phpseclib3_supported()

Returns

boolean —

true|false valid supported phpseclib3 or not.