Skip to content

Instantly share code, notes, and snippets.

@TheIndra55
Created January 4, 2026 17:30
Show Gist options
  • Select an option

  • Save TheIndra55/5726dc1cd012afd183efc68292f38e35 to your computer and use it in GitHub Desktop.

Select an option

Save TheIndra55/5726dc1cd012afd183efc68292f38e35 to your computer and use it in GitHub Desktop.
Friends Engine .asc decrypt
$Files = Get-ChildItem -Filter *.asc -Recurse
$Aes = [System.Security.Cryptography.AES]::Create()
$Aes.BlockSize = 128
$Aes.Key = [Convert]::FromHexString("4816d6a77570593a31e126515de909b5")
$Aes.IV = [Convert]::FromHexString("B550A79AD9330D19DB4FF6A3F87F5D97")
$Decryptor = $Aes.CreateDecryptor()
foreach ($File in $Files) {
$OutputFile = Join-Path $File.DirectoryName ($File.Basename + ".lua")
Write-Output $OutputFile
# Open the input and output file
$InputStream = New-Object System.IO.FileStream $File, Open, Read
$OutputStream = New-Object System.IO.FileStream $OutputFile, Create, Write
$CryptoStream = New-Object System.Security.Cryptography.CryptoStream $InputStream, $Decryptor, Read
# Decrypt the file
$CryptoStream.CopyTo($OutputStream)
$CryptoStream.Dispose()
$InputStream.Close()
$OutputStream.Close()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment