Sample code for 30+ languages & platforms
PowerShell

Transition from Crypt2.Decode to BinData.AppendEncoded

Provides instructions for replacing deprecated Decode method calls with AppendEncoded.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$crypt2 = New-Object Chilkat.Crypt2

# ...
# ...

$encoding = "base64"

# ------------------------------------------------------------------------
# The Decode method is deprecated:
$byteData = $crypt2.Decode("ENCODED_DATA...",$encoding)

# ------------------------------------------------------------------------
# Do the equivalent using BinData.AppendEncoded.

$bd = New-Object Chilkat.BinData
$success = $bd.AppendEncoded("ENCODED_DATA...",$encoding)
$byteData = $bd.GetData()