PLUS4MethodsNEncrypt Method |
Encrypts a number or RegKey2 value (compatible with
pp_nencrypt).
Namespace: com.softwarekey.Client.Compatibility.ProtectionPLUS4Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntaxpublic static int NEncrypt(
int number,
int seed
)
Public Shared Function NEncrypt (
number As Integer,
seed As Integer
) As Integer
public:
static int NEncrypt(
int number,
int seed
)
Parameters
- number
- Type: SystemInt32
The numeric value (between 0 and 16383) to encrypt. - seed
- Type: SystemInt32
The encryption seed, which must be a value between 1 and 255.
Return Value
Type:
Int32Returns the encrypted number, or -1 if encryption failed.
Remarks Note |
---|
If the return value is -1, then the value or seed is considered invalid. This can be caused for several reasons, including, but not limited to: - The seed (often the RegKey2 Seed in this case) is not an acceptable value, between 1 and 255.
- The number being encrypted is too large (or greater than 16383).
|
See Also