Click here to Skip to main content
       

C#

 
AnswerRe: Problems in retrieving HttpResponse content PinmemberRichard Deeming28-Jan-13 5:06 
GeneralRe: Problems in retrieving HttpResponse content Pinmembertiwal28-Jan-13 23:02 
QuestionAbout method TextWriter.Write() Pinmembertaibc27-Jan-13 23:52 
AnswerRe: About method TextWriter.Write() PinmemberBobJanova28-Jan-13 0:34 
AnswerRe: About method TextWriter.Write() PinmvpRichard MacCutchan28-Jan-13 0:37 
GeneralRe: About method TextWriter.Write() PinmemberPIEBALDconsult28-Jan-13 3:28 
AnswerRe: About method TextWriter.Write() Pinmembertaibc28-Jan-13 14:51 
QuestionNotifyicon in C# website PinmemberNickyRamshaw27-Jan-13 21:48 
AnswerRe: Notifyicon in C# website PinmemberBobJanova28-Jan-13 0:35 
GeneralRe: Notifyicon in C# website PinmemberNickyRamshaw28-Jan-13 0:52 
GeneralRe: Notifyicon in C# website PinprotectorPete O'Hanlon28-Jan-13 1:00 
GeneralRe: Notifyicon in C# website PinmemberNickyRamshaw28-Jan-13 1:34 
GeneralRe: Notifyicon in C# website PinprotectorPete O'Hanlon28-Jan-13 1:43 
Questionfrom java to c# Pinmembersuperamh27-Jan-13 5:46 
how i can convert this code from java to c#
 
 public static String Dcipher(String encryptedText1) {
 
        try {
            byte[] desKeyData = {(byte) 0x01, (byte) 0x02, (byte) 0x03,
                                (byte) 0x04, (byte) 0x05, (byte) 0x06,
                                (byte) 0x07, (byte) 0x08};
            DESKeySpec desKeySpec = new DESKeySpec(desKeyData);
            SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES");
            SecretKey key = null;
            try {
                key = keyFactory.generateSecret(desKeySpec);
            } catch (InvalidKeySpecException ex1) {
            }
            byte[] initVector = new byte[] {0x10, 0x10, 0x01, 0x04, 0x01, 0x01,
                                0x01,
                                0x02};
 
            AlgorithmParameterSpec algParamSpec = new IvParameterSpec(
                    initVector);
            Cipher m_decrypter = Cipher.getInstance("DES/OFB32/NoPadding");
            m_decrypter.init(Cipher.DECRYPT_MODE, key, algParamSpec);
 
            byte[] encryptedText = encryptedText1.getBytes();
            byte[] decryptedText = m_decrypter.doFinal(encryptedText);
            return (new String(decryptedText));
 
        } catch (BadPaddingException ex) {
            ex.printStackTrace();
        } catch (IllegalBlockSizeException ex) {
            ex.printStackTrace();
        } catch (InvalidAlgorithmParameterException ex) {
            ex.printStackTrace();
        } catch (InvalidKeyException ex) {
            ex.printStackTrace();
        } catch (NoSuchPaddingException ex) {
            ex.printStackTrace();
        } catch (NoSuchAlgorithmException ex) {
            ex.printStackTrace();
        }
        return "";
    }

AnswerRe: from java to c# PinmvpRichard MacCutchan27-Jan-13 6:27 
AnswerRe: from java to c# PinmemberDave Doknjas27-Jan-13 16:37 
QuestionC# timeout on linq to sql Pinmemberdcof27-Jan-13 2:52 
AnswerRe: C# timeout on linq to sql PinmvpDave Kreskowiak27-Jan-13 3:50 
AnswerRe: C# timeout on linq to sql Pinmemberjschell27-Jan-13 6:10 
AnswerRe: C# timeout on linq to sql PinmemberV.27-Jan-13 20:41 
Questionactivity-selection algorithm in c# Pinmembermazizi026-Jan-13 20:36 
AnswerRe: activity-selection algorithm in c# PinprotectorPete O'Hanlon26-Jan-13 21:16 
GeneralRe: activity-selection algorithm in c# Pinmembermazizi027-Jan-13 9:37 
GeneralRe: activity-selection algorithm in c# PinprotectorPete O'Hanlon27-Jan-13 9:50 
AnswerRe: activity-selection algorithm in c# PinmvpDave Kreskowiak27-Jan-13 3:46 
GeneralRe: activity-selection algorithm in c# Pinmembermazizi027-Jan-13 9:35 
GeneralRe: activity-selection algorithm in c# PinmvpDave Kreskowiak27-Jan-13 14:37 
AnswerRe: activity-selection algorithm in c# Pinmemberriced27-Jan-13 11:06 
GeneralRe: activity-selection algorithm in c# PinmemberPIEBALDconsult27-Jan-13 17:50 
AnswerRe: activity-selection algorithm in c# PinmemberJ4amieC28-Jan-13 0:44 
AnswerRe: activity-selection algorithm in c# Pinmemberpt140128-Jan-13 8:40 
QuestionC# access excel file Pinmemberdcof26-Jan-13 18:24 
SuggestionRe: C# access excel file PinmvpRichard MacCutchan27-Jan-13 0:15 
AnswerRe: C# access excel file PinmvpDave Kreskowiak27-Jan-13 3:44 
QuestionWCF receiving large XML PinmemberAlex Campos Vzla25-Jan-13 11:39 
AnswerRe: WCF receiving large XML PinmvpEddy Vluggen26-Jan-13 3:38 
Questionreading NTFS Share permission - how to interpret SHARE_INFO_2.Permissions flag Pinmemberdevvvy25-Jan-13 8:52 
AnswerRe: reading NTFS Share permission - how to interpret SHARE_INFO_2.Permissions flag PinmemberAndré Kraak25-Jan-13 10:57 
AnswerRe: reading NTFS Share permission - how to interpret SHARE_INFO_2.Permissions flag PinmemberRichard Deeming28-Jan-13 2:02 
Questionreturn list of url if i enter specific keyword Pinmemberprashant.k.bamania25-Jan-13 2:24 
AnswerRe: return list of url if i enter specific keyword PinmvpRichard MacCutchan25-Jan-13 3:24 
GeneralRe: return list of url if i enter specific keyword Pinmemberprashant.k.bamania26-Jan-13 1:21 
GeneralRe: return list of url if i enter specific keyword PinmvpRichard MacCutchan26-Jan-13 1:23 
AnswerRe: return list of url if i enter specific keyword PinprotectorPete O'Hanlon25-Jan-13 3:53 
GeneralRe: return list of url if i enter specific keyword Pinmemberprashant.k.bamania26-Jan-13 1:22 
GeneralRe: return list of url if i enter specific keyword PinprotectorPete O'Hanlon26-Jan-13 5:12 
AnswerRe: return list of url if i enter specific keyword PinmemberManfred R. Bihy26-Jan-13 10:09 
SuggestionGoogle Earth Plugin throwing Javascript Error to WPF Window Pinmembercitibabu24-Jan-13 19:50 
GeneralRe: Google Earth Plugin throwing Javascript Error to WPF Window PinmvpRichard MacCutchan25-Jan-13 1:41 
Questionimplementing skype plugin on windows 8 Pinmemberomotayo adebola24-Jan-13 13:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 31 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid