< Back

ConvertTo-PrivateDecryptionValue

Sat Jan 18, 2020 9:39 am

NAME ConvertTo-PrivateDecryptionValue



SYNOPSIS

Decrypts the value from ConvertTo-PublicEncryptionValue function





SYNTAX

ConvertTo-PrivateDecryptionValue [[-EncryptedCipherText] <Int64>] [-PrivateKey] <Int64> [-N] <Int64>

[<CommonParameters>]





DESCRIPTION

Given a private and public key from Get-RSAKey function, the public key is used to encrypt a cipher

text via ConvertTo-PublicEncryptionValue function. The value from that function is used in this

function to decrypt it using the private (d) key.





PARAMETERS

-EncryptedCipherText <Int64>

The value from ConvertTo-PublicEncryptionValue



Required? false

Position? 1

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-PrivateKey <Int64>

The private key to decrypt EncryptedCipherText parameter. This is typically represented in

mathematical operations as the letter 'd'.



Required? true

Position? 2

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-N <Int64>

The key modulus of PrivateKey parameter value. This is typically represented in mathematical

operations as the letter 'n'.



Required? true

Position? 3

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





General notes



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>An example















RELATED LINKS