Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe PuTTY

Fonctions membres publiques statiques

static setComment ($comment)
 
static setVersion ($version)
 
static load ($key, $password)
 

Fonctions membres protégées statiques

static wrapPrivateKey ($public, $private, $type, $password, array $options=[])
 
static wrapPublicKey ($key, $type)
 

Fonctions membres privées statiques

static generateV2Key ($password, $length)
 
static generateV3Key ($password, $flavour, $memory, $passes, $salt)
 

Attributs privés statiques

static $comment = 'phpseclib-generated-key'
 
static $version = 2
 

Documentation des fonctions membres

◆ generateV2Key()

static generateV2Key (   $password,
  $length 
)
staticprivate

Generate a symmetric key for PuTTY v2 keys

private

Paramètres
string$password
int$length
Renvoie
string

Références $password, $temp, et EncoderInterface\decode().

◆ generateV3Key()

static generateV3Key (   $password,
  $flavour,
  $memory,
  $passes,
  $salt 
)
staticprivate

Generate a symmetric key for PuTTY v3 keys

private

Paramètres
string$password
string$flavour
int$memory
int$passes
string$salt
Renvoie
array

Références $password, $temp, SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13, et SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13.

◆ load()

static load (   $key,
  $password 
)
static

Break a public or private key down into its constituent components

public

Paramètres
string$key
string$password
Renvoie
array

Références $data, $hash, $key, Joomla\Database\Query\$offset, $password, $type, PuTTY\$version, EncoderInterface\decode(), Strings\is_stringable(), Strings\packSSH2(), et Strings\shift().

◆ setComment()

static setComment (   $comment)
static

Sets the default comment

public

Paramètres
string$comment

Références PuTTY\$comment.

◆ setVersion()

static setVersion (   $version)
static

Sets the default version

public

Paramètres
int$version

Références PuTTY\$version, et $version.

◆ wrapPrivateKey()

static wrapPrivateKey (   $public,
  $private,
  $type,
  $password,
array  $options = [] 
)
staticprotected

Wrap a private key appropriately

private

Paramètres
string$public
string$private
string$type
string$password
array$optionsoptional
Renvoie
string

Références PuTTY\$comment, $hash, $key, $options, $password, $type, PuTTY\$version, $version, EncoderInterface\encode(), Base64\encode(), Strings\packSSH2(), et Random\string().

◆ wrapPublicKey()

static wrapPublicKey (   $key,
  $type 
)
staticprotected

Wrap a public key appropriately

This is basically the format described in RFC 4716 (https://tools.ietf.org/html/rfc4716)

private

Paramètres
string$key
string$type
Renvoie
string

Références $key, $type, et Base64\encode().

Documentation des champs

◆ $comment

$comment = 'phpseclib-generated-key'
staticprivate

◆ $version

$version = 2
staticprivate

La documentation de cette classe a été générée à partir du fichier suivant :