[This is preliminary documentation and is subject to change.]
Creates an instance of SIFEncryption that uses the specified
PasswordAlgorithm, keyName and key
| C# | Visual Basic | Visual C++ |
public static SifEncryption GetInstance( PasswordAlgorithm algorithm, string keyName, byte[] key )
Public Shared Function GetInstance ( _ algorithm As PasswordAlgorithm, _ keyName As String, _ key As Byte() _ ) As SifEncryption
public: static SifEncryption^ GetInstance ( PasswordAlgorithm^ algorithm, String^ keyName, array<unsigned char>^ key )
- algorithm (PasswordAlgorithm)
- The algorithm to use for encrypting or decrypting passwords
- keyName (String)
- The name of the encryption key to use.
- key (array<Byte>[]())
- The encryption key to use. This parameter is ignored for SHA1 and MD5 because they are not keyed hash algorithms
An instance of the SifEncryption class for reading and writing passwords