Click or drag to resize
PLUS4MethodsNDecrypt Method
Decrypts a number or RegKey2 value (compatible with pp_ndecrypt).

Namespace: com.softwarekey.Client.Compatibility.ProtectionPLUS4
Assembly: PLUSManaged (in PLUSManaged.dll) Version:
public static int NDecrypt(
	int number,
	int seed


Type: SystemInt32
The number to decrypt.
Type: SystemInt32
The encryption seed, which must be a value between 1 and 255.

Return Value

Type: Int32
Returns the decrypted number, or -1 if decryption failed.
Note Note

If the return value is -1, then the value is considered invalid. This can be caused for several reasons, including, but not limited to:

  • The user mistyped the value being decrypted (usually called Activation Code 2 or RegKey2).
  • The seed (also known as the RegKey2 seed) is not an acceptable value, between 1 and 255.
  • The seed (also known as the RegKey2 seed) is not the same value used when encrypting the number value.
  • The number value encrypted (or the value used when generating RegKey2) was too large (or greater than 16383).
See Also