A set of utilities that allow to autonomously build a Visual Studio SSIS project (dtproj) into a deployment package (ispac), and deploy the package to an SSIS catalog
Apache License 2.0
52
stars
39
forks
source link
`DecryptElement` - Garbage Data And Invalid Padding #48
I'm exploring decrypting dtsx files using the same logic in the aforementioned method found below. I'm using pwsh.exe and I can only decrypt mostly successfully if I use [System.Security.Cryptography.PaddingMode]::ISO10126 otherwise I get StreamReader errors about padding ( e.g. Write-Error: Exception calling "ReadToEnd" with "0" argument(s): "Padding is invalid and cannot be removed." ).
https://github.com/rtumaykin/ssis-build/blob/5a0187b788934ed919daa7ed929605582dcca29e/src/SsisBuild.Core/ProjectManagement/ProjectFile.cs#L246
Additionally, I receive weird characters at beginning like the below.
Below is the script function I built that mostly mirrors the aforementioned method. I can only figure at this point either I have some weird old 2008/2012 dtsx file or I've got some incompatibility with .NET.
I'm exploring decrypting
dtsx
files using the same logic in the aforementioned method found below. I'm usingpwsh.exe
and I can only decrypt mostly successfully if I use[System.Security.Cryptography.PaddingMode]::ISO10126
otherwise I getStreamReader
errors about padding ( e.g.Write-Error: Exception calling "ReadToEnd" with "0" argument(s): "Padding is invalid and cannot be removed."
). https://github.com/rtumaykin/ssis-build/blob/5a0187b788934ed919daa7ed929605582dcca29e/src/SsisBuild.Core/ProjectManagement/ProjectFile.cs#L246 Additionally, I receive weird characters at beginning like the below.Below is the script function I built that mostly mirrors the aforementioned method. I can only figure at this point either I have some weird old 2008/2012
dtsx
file or I've got some incompatibility with .NET.