Skip to content

giMini/PowerRSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PowerRSA

Generate RSA keys, encrypt and decrypt data

Generate the keys

To generate the Modulus, the private key and the public key, enter this command

.\PowerRSA.ps1 -Method GenKeys

Generate a 1024 key

.\PowerRSA.ps1 -Method GenKeys -KeyType 1024-bit

Generate a 2048 key

.\PowerRSA.ps1 -Method GenKeys -KeyType 2048-bit

Encrypt data

To encrypt data using PowerRSA enter this command

.\PowerRSA.ps1 -Method Enc -Exponent F:\Crypto\20160206104626\PublicKey -Modulus F:\Crypto\20160206104626\Modulus

Enter the data string to encrypt :

Enter message to encrypt: Hi! I'm an encrypted data string

Decrypt data

To decrypt data using PowerRSA enter this command

.\PowerRSA.ps1 -Method Dec -Data F:\Crypto\20160206110641\Data -Exponent F:\Crypto\20160206104626\PrivateKey -Modulus F:\Crypto\20160206104626\Modulus

About

Generate RSA keys, encrypt and decrypt data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published