使用官方的加密解密算法命令中的BASE64加密解密命令,对接口返回的BASE64加密字符串进行解码时报错如下:The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
但是从网上随便找一个在线Base64加解码工具,都可以解出来。这就有点儿尴尬了。。。。
加密串:"eyJDb2RlIjowLCJEYXRhIjp7ImFjY19mbGFnIjoiMSIsImJpcnRoZGF5IjoiMTk3MC0wMS0wMSIsImNhcmRfaWQiOiI2MDAwMDc3NTczMjk3Nzc0MjMzIiwiY2FyZF9zdGF0dXMiOiJbMF3mraPluLgiLCJjYXJkX3R5cGUiOiI1IiwiZGF0ZW5vd19mb3Jtc2VydmVyIjoiMjAyMy0wNy0wNyIsImxpbWl0X3F0eSI6OTk5OTUsIm1lbW8iOiLliIfmjaLlr7zlhaUiLCJtb2JpbGUiOm51bGwsInBhc3N3b3JkIjpudWxsLCJyZWNoYXJnZV9iYWxhbmNlIjoxNi4yMywicmVzaWR1YWxfYW10IjoxNi4yMywic2F2X2VuZF9kYXRlIjoiMjAyOC0wNi0xMiIsInNhdmluZ19mbGFnIjoiMSIsInRvdF9hY2NudW0iOjAsInR5cGVfaWQiOiI1IiwidmlwX2FjY251bSI6MCwidmlwX2VuZF9kYXRlIjoiMjAyOC0wNi0xMiIsInZpcF9uYW1lIjpudWxsLCJ2aXBfc2V4Ijoi5aWzIiwidmlwX3RlbCI6bnVsbH0sIk1lc3NhZ2UiOm51bGx9"
|