< Back

ConvertTo-PublicEncryptionValue

Sat Jan 18, 2020 9:39 am

NAME ConvertTo-PublicEncryptionValue



SYNOPSIS

Encrypts the value from ConvertTo-CipherText function





SYNTAX

ConvertTo-PublicEncryptionValue [-CipherText] <Int64> [-PublicKey] <Int64> [-N] <Int64> [<CommonParameters>]





DESCRIPTION

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

text. The value returned from this function is used in the ConvertTo-PrivateDecryptionValue

function to decrypt it.





PARAMETERS

-CipherText <Int64>

The value from ConvertTo-PublicEncryptionValue



Required? true

Position? 1

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-PublicKey <Int64>

The public key to encrypt CipherText parameter. This is typically represented in mathematical

operations as the letter 'e'.



Required? true

Position? 2

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-N <Int64>

The key modulus of PublicKey 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