MainWP Child Documentation

MainWP_Child_Keys_Manager
in package

Class MainWP_Child_Keys_Manager

Table of Contents

Properties

$instance  : mixed
Private static variable to hold the single instance of the class.

Methods

decrypt_string()  : string
Method decrypt_string()
encrypt_string()  : string
Method encrypt_string()
get_class_name()  : object
Method get_class_name()
get_encrypted_option()  : string
Method get_encrypted_option()
get_key_val()  : string
Method get_key_val()
get_sodium_key()  : string
Method get_sodium_key()
hook_get_encrypted_option()  : string
Method hook_get_encrypted_option()
instance()  : Instance
Method instance()
update_encrypted_option()  : bool
Method update_encrypted_option()
valid_phpseclib3_supported()  : bool
Method valid_phpseclib3_supported()

Properties

$instance

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

private static mixed $instance = null

Default null

Tags
static

Methods

decrypt_string()

Method decrypt_string()

public decrypt_string(mixed $encodedValue) : string

Handle decrypt value.

Parameters
$encodedValue : mixed

The value to decrypt.

Return values
string

Decrypt value.

encrypt_string()

Method encrypt_string()

public encrypt_string(mixed $keypass) : string

Handle encrypt string.

Parameters
$keypass : mixed

The value to encrypt.

Return values
string

Encrypted value.

get_class_name()

Method get_class_name()

public static get_class_name() : object

Get Class Name.

Return values
object

Class name.

get_encrypted_option()

Method get_encrypted_option()

public static get_encrypted_option(string $option[, mixed $def_value = false ]) : string

Handle get encrypted value.

Parameters
$option : string

option name.

$def_value : mixed = false

default value (option), default: false.

Return values
string

Decrypt value.

get_key_val()

Method get_key_val()

public get_key_val([string $scheme = 'auth' ][, int $length = 16 ]) : string

Get salt value.

Parameters
$scheme : string = 'auth'

scheme key.

$length : int = 16

length of key.

Return values
string

Decrypt value.

get_sodium_key()

Method get_sodium_key()

public get_sodium_key() : string

Get key value for sodium.

Return values
string

key value.

hook_get_encrypted_option()

Method hook_get_encrypted_option()

public static hook_get_encrypted_option(string $empty_value, string $option[, mixed $def_value = false ]) : string

Handle get encrypted option value.

Parameters
$empty_value : string

empty input value.

$option : string

option name.

$def_value : mixed = false

default value (option), default: false.

Return values
string

Decrypt value.

instance()

Method instance()

public static instance() : Instance

Create a public static instance.

Tags
static
Return values
Instance

class.

update_encrypted_option()

Method update_encrypted_option()

public static update_encrypted_option(string $option, string $value) : bool

Handle update encrypted value.

Parameters
$option : string

option name.

$value : string

option value.

Return values
bool

true|false updated success or failed.

valid_phpseclib3_supported()

Method valid_phpseclib3_supported()

public valid_phpseclib3_supported() : bool
Return values
bool

true|false valid supported phpseclib3 or not.


        
On this page

Search results