Click or drag to resize
PLUS4MethodsNEncrypt Method
Encrypts a number or RegKey2 value (compatible with pp_nencrypt).

Namespace: com.softwarekey.Client.Compatibility.ProtectionPLUS4
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax
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: Int32
Returns the encrypted number, or -1 if encryption failed.
Remarks
Note 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