PHP Class phpseclib\Crypt\Common\PKCS1

Author: Jim Wigginton ([email protected])
Inheritance: extends PKCS
Afficher le fichier Open project: phpseclib/phpseclib Class Usage Examples

Méthodes publiques

Свойство Type Description
$defaultEncryptionAlgorithm string Default encryption algorithm

Méthodes publiques

Méthode Description
generateSymmetricKey ( string $password, string $iv, integer $length ) : string Generate a symmetric key for PKCS#1 keys
getEncryptionMode ( string $mode ) : integer Returns the mode constant corresponding to the mode string
getEncryptionObject ( string $algo ) : string Returns a cipher object corresponding to a string
load ( string $key, string $password ) : array Break a public or private key down into its constituent components
setEncryptionAlgorithm ( string $algo ) Sets the default encryption algorithm
wrapPrivateKey ( string $key, string $type, string $password ) : string Wrap a private key appropriately
wrapPublicKey ( string $key, string $type ) : string Wrap a public key appropriately

Method Details

generateSymmetricKey() static public méthode

Generate a symmetric key for PKCS#1 keys
static public generateSymmetricKey ( string $password, string $iv, integer $length ) : string
$password string
$iv string
$length integer
Résultat string

getEncryptionMode() static public méthode

Returns the mode constant corresponding to the mode string
static public getEncryptionMode ( string $mode ) : integer
$mode string
Résultat integer

getEncryptionObject() static public méthode

Returns a cipher object corresponding to a string
static public getEncryptionObject ( string $algo ) : string
$algo string
Résultat string

load() static public méthode

Break a public or private key down into its constituent components
static public load ( string $key, string $password ) : array
$key string
$password string optional
Résultat array

setEncryptionAlgorithm() static public méthode

Sets the default encryption algorithm
static public setEncryptionAlgorithm ( string $algo )
$algo string

wrapPrivateKey() static public méthode

Wrap a private key appropriately
static public wrapPrivateKey ( string $key, string $type, string $password ) : string
$key string
$type string
$password string
Résultat string

wrapPublicKey() static public méthode

Wrap a public key appropriately
static public wrapPublicKey ( string $key, string $type ) : string
$key string
$type string
Résultat string

Property Details

$defaultEncryptionAlgorithm static_oe public_oe property

Default encryption algorithm
static public string $defaultEncryptionAlgorithm
Résultat string