मैं पर डिक्रिप्ट पासवर्ड काम कर रहा हूँ और मैं इस त्रुटि पर अटक:स्ट्रिंग शून्य लंबाई का नहीं हो सकता है। पैरामीटर नाम: OLDVALUE
String cannot be of zero length. Parameter name: 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;
** बेस 64 एन्क्रिप्शन ** नहीं है। आपको ** हैश ** पासवर्ड होना चाहिए। – SLaks
त्रुटि का कौन सा हिस्सा आप समझ नहीं पाते? आपका कोड समझ में नहीं आता है। – SLaks
@ फ्री लांसर मेरा पूरा कोड है, मैं इस कोड का उपयोग वेबसाइट स्ट्रिंग decryptpwd = स्ट्रिंग से करता हूं।खाली; यूटीएफ 8 एन्कोडिंग encodepwd = नया यूटीएफ 8 एन्कोडिंग(); डीकोडर डीकोड = encodepwd.GetDecoder(); बाइट [] todecode_byte = कनवर्ट करें। FromBase64String (encptpwd.Replace ("+", "")); int charcount = decode.GetCharCount (todecode_byte, 0, todecode_byte.Length); char [] decode_char = नया char [charcount]; डीकोड। गेटचर्स (todecode_byte, 0, todecode_byte.Length, decode_char, 0); decryptpwd = नया स्ट्रिंग (decode_char); वापसी decryptpwd; मैं इस कोशिश – Raheel