PowerSNMP for .NET
GenerateLocalPrivacyKey(String) Method




The privacy password to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.
Generates a local privacy keys for both key expansion algorithms using the specified privacy password and the current engine ID.
Syntax
Public Overloads Function GenerateLocalPrivacyKey( _
   ByVal privacyPassword As String _
) As Byte()
Dim instance As User
Dim privacyPassword As String
Dim value() As Byte
 
value = instance.GenerateLocalPrivacyKey(privacyPassword)
public byte[] GenerateLocalPrivacyKey( 
   string privacyPassword
)
public: byte[]* GenerateLocalPrivacyKey( 
   string* privacyPassword
) 
public:
array<byte>^ GenerateLocalPrivacyKey( 
   String^ privacyPassword
) 

Parameters

privacyPassword
The privacy password to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.

Return Value

A byte array containing the generated local privacy key dictated by KeyExpansionAlgorithm.
Remarks
The generated key is derived from the provided password and the current EngineId and KeyExpansionAlgorithm. The generated key will automatically be added to the LocalPrivacyKeys dictionary if CacheSecurityKeys is True.
See Also

Reference

User Class
User Members
Overload List


PowerSNMP for .NET Documentation Version 8.1
© 2026 Dart Communications. All Rights Reserved.
Send comments on this topic