|  Download KeyFactory (abstract)Namespace: \ParagonIE\Halite A factory class responsible for the creation and persistence of cryptography
keys. MethodsgenerateAuthenticationKey()
> public staticgenerateAuthenticationKey(&$secret_key = null) :AuthenticationKey Generate an authentication key (symmetric-key cryptography). 
 generateEncryptionKey()
> public staticgenerateEncryptionKey(&$secret_key = null) :EncryptionKey Generate an encryption key (symmetric-key cryptography). generateEncryptionKeyPair()
> public staticgenerateEncryptionKeyPair(&$secret_key = null) :EncryptionKeyPair Generate a key pair for public key encryption. generateSignatureKeyPair()
> public staticgenerateSignatureKeyPair(&$secret_key = null) :SignatureKeyPair Generate a key pair for public key digital signatures. deriveAuthenticationKey()
> public staticderiveAuthenticationKey(string $password,string $salt) :AuthenticationKey Derive a symmetric authentication key from a password and salt. 
 deriveEncryptionKey()
> public staticderiveEncryptionKey(string $password,string $salt) :EncryptionKey Derive a symmetric encryption key from a password and salt. deriveEncryptionKeyPair()
> public staticderiveEncryptionKeyPair(string $password,string $salt) :EncryptionKeyPair Derive an asymmetric encryption key pair from a password and salt. deriveSignatureKeyPair()
> public staticderiveSignatureKeyPair(string $password,string $salt) :SignatureKeyPair Derive an asymmetric signature key pair from a password and salt. loadAuthenticationKey()
> public staticloadAuthenticationKey(string $filePath) :AuthenticationKey Load an AuthenticationKeyfrom a file. loadEncryptionKey()
> public staticloadEncryptionKey(string $filePath) :EncryptionKey Load an EncryptionKeyfrom a file. loadEncryptionKeyPair()
> public staticloadEncryptionKeyPair(string $filePath) :EncryptionKeyPair Load an EncryptionKeyPairfrom a file. loadSignatureKeyPair()
> public staticloadSignatureKeyPair(string $filePath) :SignatureKeyPair Load an SignatureKeyPairfrom a file. save()
> public staticsave(Key|KeyPair $key,string $filename = '') Save a key to a file. |