\MainWP\DashboardMainWP_Api_Manager_Password_Management

Class MainWP_Api_Manager_Password_Management

WooCommerce API Password Handler.

Summary

Methods
Properties
Constants
generate_password()
encrypt_string()
decrypt_string()
encrypt()
decrypt()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$ENCRYPT
N/A

Properties

$ENCRYPT

$ENCRYPT : string

Set encryption type.

Type

string

Methods

generate_password()

generate_password(integer  $length = 12, boolean  $special_chars = true, boolean  $extra_special_chars = false) : string

Generate password. Creates a unique instance ID.

Parameters

integer $length

Length of ID.

boolean $special_chars

Valid special characters.

boolean $extra_special_chars

Extra special characters.

Returns

string —

Password.

encrypt_string()

encrypt_string(string  $str) : string

Encrypt string.

Parameters

string $str

String to encrypt.

Returns

string —

Encrypted string.

decrypt_string()

decrypt_string(string  $encrypted) : string

Decrypts string.

Parameters

string $encrypted

Sting to decrypt.

Returns

string —

Decrypted string.

encrypt()

encrypt(string  $str, string  $pass) : string

Encrypt.

Parameters

string $str

String to encrypt.

string $pass

String.

Returns

string —

Encrypted string.

decrypt()

decrypt(string  $str, string  $pass) : string

Decrypt.

Parameters

string $str

String to Decrypt.

string $pass

String.

Returns

string —

Decrypted string.