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:
public static int NEncrypt(
	int number,
	int seed


Type: SystemInt32
The numeric value (between 0 and 16383) to encrypt.
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.
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