DownloadKeyFactory (abstract)
Namespace: \ParagonIE\Halite
A factory class responsible for the creation and persistence of cryptography
keys.
Methods
generateAuthenticationKey()
> public static generateAuthenticationKey(&$secret_key = null ) : AuthenticationKey
Generate an authentication key (symmetric-key cryptography).
generateEncryptionKey()
> public static generateEncryptionKey(&$secret_key = null ) : EncryptionKey
Generate an encryption key (symmetric-key cryptography).
generateEncryptionKeyPair()
> public static generateEncryptionKeyPair(&$secret_key = null ) : EncryptionKeyPair
Generate a key pair for public key encryption.
generateSignatureKeyPair()
> public static generateSignatureKeyPair(&$secret_key = null ) : SignatureKeyPair
Generate a key pair for public key digital signatures.
deriveAuthenticationKey()
> public static deriveAuthenticationKey(string $password , string $salt ) : AuthenticationKey
Derive a symmetric authentication key from a password and salt.
deriveEncryptionKey()
> public static deriveEncryptionKey(string $password , string $salt ) : EncryptionKey
Derive a symmetric encryption key from a password and salt.
deriveEncryptionKeyPair()
> public static deriveEncryptionKeyPair(string $password , string $salt ) : EncryptionKeyPair
Derive an asymmetric encryption key pair from a password and salt.
deriveSignatureKeyPair()
> public static deriveSignatureKeyPair(string $password , string $salt ) : SignatureKeyPair
Derive an asymmetric signature key pair from a password and salt.
loadAuthenticationKey()
> public static loadAuthenticationKey(string $filePath ) : AuthenticationKey
Load an AuthenticationKey from a file.
loadEncryptionKey()
> public static loadEncryptionKey(string $filePath ) : EncryptionKey
Load an EncryptionKey from a file.
loadEncryptionKeyPair()
> public static loadEncryptionKeyPair(string $filePath ) : EncryptionKeyPair
Load an EncryptionKeyPair from a file.
loadSignatureKeyPair()
> public static loadSignatureKeyPair(string $filePath ) : SignatureKeyPair
Load an SignatureKeyPair from a file.
save()
> public static save(Key|KeyPair $key , string $filename = '' )
Save a key to a file.
|