Skip to content

Instantly share code, notes, and snippets.

@spouliot
Created February 9, 2016 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spouliot/2406daddb5d8c7c6505a to your computer and use it in GitHub Desktop.
Save spouliot/2406daddb5d8c7c6505a to your computer and use it in GitHub Desktop.
Sebastiens-iMac:TestAppForXamarin poupou$ /opt/400/bin/mono --version
Mono JIT compiler version 4.0.0 (mono-4.0.0-branch/e3dc174 Mon 8 Feb 2016 21:38:24 EST)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
Sebastiens-iMac:TestAppForXamarin poupou$ /opt/400/bin/mono Crypto.exe c5
ge4wa2hzC8UK9NyYjcu40g==
Sebastiens-iMac:TestAppForXamarin poupou$ /opt/400/bin/mono Crypto.exe
c5
Sebastiens-iMac:TestAppForXamarin poupou$ /opt/421/bin/mono --version
Mono JIT compiler version 4.2.2 (mono-4.2.0-branch/175c409 Mon 8 Feb 2016 21:18:52 EST)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
Sebastiens-iMac:TestAppForXamarin poupou$ /opt/421/bin/mono Crypto.exe
Unhandled Exception:
System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, System.Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) <0x1094b2530 + 0x00ff7> in <filename unknown>:0
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) <0x1094b0e30 + 0x001f6> in <filename unknown>:0
at System.Security.Cryptography.CryptoStream.Read (System.Byte[] buffer, Int32 offset, Int32 count) <0x1094a6f60 + 0x0070b> in <filename unknown>:0
at System.IO.StreamReader.ReadBuffer () <0x10943c7c0 + 0x0007a> in <filename unknown>:0
at System.IO.StreamReader.ReadToEnd () <0x10943bd50 + 0x000b1> in <filename unknown>:0
at TestAppForXamarin.Crypto.DecryptStringFromBytes_Aes (System.Byte[] cipherText) <0x10793b010 + 0x0025f> in <filename unknown>:0
at TestAppForXamarin.Crypto.Decrypt (System.String cipherBytes) <0x10793af20 + 0x0002f> in <filename unknown>:0
at TestAppForXamarin.Crypto.Main (System.String[] args) <0x107936ed0 + 0x000fc> in <filename unknown>:0
Unhandled Exception:
System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, System.Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) <0x1094b2530 + 0x00fd8> in <filename unknown>:0
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) <0x1094b0e30 + 0x001f6> in <filename unknown>:0
at System.Security.Cryptography.CryptoStream.FlushFinalBlock () <0x1094a6c60 + 0x00044> in <filename unknown>:0
at System.Security.Cryptography.CryptoStream.Dispose (Boolean disposing) <0x1094a8870 + 0x00030> in <filename unknown>:0
at System.IO.Stream.Close () <0x109437d40 + 0x00019> in <filename unknown>:0
at System.IO.StreamReader.Dispose (Boolean disposing) <0x10943b4c0 + 0x00049> in <filename unknown>:0
at System.IO.TextReader.Dispose () <0x1094419a0 + 0x00019> in <filename unknown>:0
at TestAppForXamarin.Crypto.DecryptStringFromBytes_Aes (System.Byte[] cipherText) <0x10793b010 + 0x0029e> in <filename unknown>:0
at TestAppForXamarin.Crypto.Decrypt (System.String cipherBytes) <0x10793af20 + 0x0002f> in <filename unknown>:0
at TestAppForXamarin.Crypto.Main (System.String[] args) <0x107936ed0 + 0x000fc> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, System.Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) <0x1094b2530 + 0x00fd8> in <filename unknown>:0
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) <0x1094b0e30 + 0x001f6> in <filename unknown>:0
at System.Security.Cryptography.CryptoStream.FlushFinalBlock () <0x1094a6c60 + 0x00044> in <filename unknown>:0
at System.Security.Cryptography.CryptoStream.Dispose (Boolean disposing) <0x1094a8870 + 0x00030> in <filename unknown>:0
at System.IO.Stream.Close () <0x109437d40 + 0x00019> in <filename unknown>:0
at System.IO.StreamReader.Dispose (Boolean disposing) <0x10943b4c0 + 0x00049> in <filename unknown>:0
at System.IO.TextReader.Dispose () <0x1094419a0 + 0x00019> in <filename unknown>:0
at TestAppForXamarin.Crypto.DecryptStringFromBytes_Aes (System.Byte[] cipherText) <0x10793b010 + 0x0029e> in <filename unknown>:0
at TestAppForXamarin.Crypto.Decrypt (System.String cipherBytes) <0x10793af20 + 0x0002f> in <filename unknown>:0
at TestAppForXamarin.Crypto.Main (System.String[] args) <0x107936ed0 + 0x000fc> in <filename unknown>:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment