PGPManaged..::..TryDecrypt Method (String, Boolean, array<String>[]()[][])
Attempts to decrypt a message using a set of private key
Namespace:
Walter.Cypher.PGPAssembly: Walter.Cypher (in Walter.Cypher.dll)
Syntax
[NotNullAttribute] public ValueTuple<string, int> TryDecrypt( string encryptedText, bool paralell, params string[] privateKeys )
Parameters
- encryptedText
- Type: String
the encrypted text to decipher
- paralell
- Type: Boolean
perform decryption as a parallel operation
- privateKeys
- Type: array<String>[]()[][]
the keys to use for the decryption
Return Value
Returns a tuple with the result and they index of the key used, the key is -1 if no valid key was foundExceptions
Exception | Condition |
---|---|
ArgumentException | encryptedText not provided |
ArgumentNullException | privateKeys is null |