Skip to content

Instantly share code, notes, and snippets.

View soondook's full-sized avatar
🏠
Working from home

soondook soondook

🏠
Working from home
View GitHub Profile
@soondook
soondook / AESDecrypt.ps1
Last active January 13, 2020 09:24 — forked from geoffgarside/AESDecrypt.ps1
Powershell Encryption, Compression, Base64 Encoding
#!/usr/bin/env powershell
param ( [String]$InputFile, [String]$OutputFile, [String]$Password="pa55w0rd" )
$InputStream = New-Object IO.FileStream($InputFile,
[IO.FileMode]::Open, [IO.FileAccess]::Read)
$OutputStream = New-Object IO.FileStream($OutputFile,
[IO.FileMode]::Create, [IO.FileAccess]::Write)
# Read the Salt