Reliably checking if a string is base64 encoded in .Net

后端 未结 1 649
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 11:42

Before I start: Yes, I have checked the other questions and answers on this topic both here and elsewhere.

I have found an example string that the .Net will base64

相关标签:
1条回答
  • 2021-01-06 12:20

    There's a slightly better solution which also checks the input string length.

    I recommend you do a check at the beginning. If the input is null or empty then return false.

    http://www.codeproject.com/Questions/177808/How-to-determine-if-a-string-is-Base-decoded-or

    0 讨论(0)
提交回复
热议问题