Skip to content

chrisjd20/python_powershell_aes_encrypt_decrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_powershell_aes_encrypt_decrypt

python to powershell string encrypt and decrypt

Python:

from aes import cryptor

cipher = cryptor('Really Strong Key')

encrypted = cipher.encrypt('Hello World!')

decrypted = cipher.decrypt(encrypted)

print encrypted

print decrypted

alt text

PowerShell

$key = 'Really Strong Key'

$unencryptedString = "Hello World!"

$encryptedString = Encrypt-String $key $unencryptedString

$encryptedString

$decryptedString = Decrypt-String $key "6781c750387b405fb79f57cd34b312189e61a26d204a97b20a57f9109cfe09f5"

$decryptedString

alt text

About

python to powershell string encrypt and decrypt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages