< Back

Get-RSAKey

Sat Jan 18, 2020 9:39 am

NAME Get-RSAKey



SYNOPSIS

Returns asymetric keys; Public Key and Private Key





SYNTAX

Get-RSAKey [[-a] <Int64>] [[-b] <Int64>] [[-a_] <Int64>] [[-b_] <Int64>] [<CommonParameters>]





DESCRIPTION

To be used to encrypt and decrypt cipher text values.





PARAMETERS

-a <Int64>

Any integer in the range of 1-100.



Required? false

Position? 1

Default value $(Get-Random -Minimum -1 -Maximum 1000)

Accept pipeline input? false

Accept wildcard characters? false



-b <Int64>

Any integer in the range of 1-1000.



Required? false

Position? 2

Default value $(Get-Random -Minimum -1 -Maximum 1000)

Accept pipeline input? false

Accept wildcard characters? false



-a_ <Int64>

Any integer in the range of 1-1000.



Required? false

Position? 3

Default value $(Get-Random -Minimum -1 -Maximum 1000)

Accept pipeline input? false

Accept wildcard characters? false



-b_ <Int64>

Any integer in the range of 1-1000.



Required? false

Position? 4

Default value $(Get-Random -Minimum -1 -Maximum 1000)

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

AsymmetricKeys





NOTES





General notes



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



C:\\>$AlicesKeys = Get-RSAKey -a 67 -b 63 -a_ 2 -b_ 3



VERBOSE: The value for 'a' is: 67

VERBOSE: The value for 'b' is: 63

VERBOSE: The value for 'a_' is: 2

VERBOSE: The value for 'b_' is: 3

VERBOSE: The value of Private key 'e' (encrypt) is: 8507

VERBOSE: The value of Public key 'd' (decrypt) is: 12723

VERBOSE: The value of 'n' is: 25648











RELATED LINKS