私はパスワードの復号化に取り組んでいますが、このエラーで立ち往生しています:
文字列の長さをゼロにすることはできません。パラメータ名: 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;