小编Rah*_*eel的帖子

字符串长度不能为零.参数名称:oldValue

我正在使用Decrypt密码,我坚持这个错误:

字符串长度不能为零.参数名称:oldValue

请帮助解决此错误或建议我另一个解密程序.

这是完整的代码:

string decryptpwd = string.Empty;
UTF8Encoding encodepwd = new UTF8Encoding();
Decoder Decode = encodepwd.GetDecoder();
byte[] todecode_byte = Convert.FromBase64String(encryptpwd.Replace("+",""));
int charcount = Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length);
char[] decode_char = new char[charcount];
Decode.GetChars(todecode_byte, 0, todecode_byte.Length, decode_char, 0);
decryptpwd = new String(decode_char);
return decryptpwd;
Run Code Online (Sandbox Code Playgroud)

c# asp.net encryption

9
推荐指数
2
解决办法
2万
查看次数

标签 统计

asp.net ×1

c# ×1

encryption ×1