Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
QuestionPopulating Data from MS Access Pin
haroon19803-Mar-09 6:55
haroon19803-Mar-09 6:55 
AnswerRe: Populating Data from MS Access Pin
dan!sh 3-Mar-09 7:16
professional dan!sh 3-Mar-09 7:16 
GeneralRe: Populating Data from MS Access Pin
haroon19803-Mar-09 7:35
haroon19803-Mar-09 7:35 
AnswerRe: Populating Data from MS Access Pin
Eddy Vluggen3-Mar-09 8:09
professionalEddy Vluggen3-Mar-09 8:09 
AnswerRe: Populating Data from MS Access Pin
haroon19803-Mar-09 11:38
haroon19803-Mar-09 11:38 
QuestionWriting SQL statement in C# Pin
Deepali Khalkar3-Mar-09 6:39
Deepali Khalkar3-Mar-09 6:39 
AnswerRe: Writing SQL statement in C# Pin
Yusuf3-Mar-09 8:32
Yusuf3-Mar-09 8:32 
QuestionCannot use Java generated DES Key in C# Pin
karpolu3-Mar-09 6:13
karpolu3-Mar-09 6:13 
Greetings,

I am developing an application that reads a DES encrypted password generated using Java in a properties file and decrypts it, using DESCryptoServiceProvider. I am provided with the key string originally generated with Java using DES.

Does anyone have an example or sample code that converts/uses a Java generated key to decrypt a Java generated password in C#? After removing the dashes, I get the "Specified key is not a valid size for this algorithm" exception.

I've tried both of these lines of code and get the same error:

static byte[] key = ASCIIEncoding.ASCII.GetBytes(dashKey.Replace("-", ""));
OR
static byte[] key = Encoding.ASCII.GetBytes(dashKey.Replace("-", ""));

The error occurrs at either of the below lines of code I tried:

cryptoProvider.Key = key;
OR
ICryptoTransform decryptor = cryptoProvider.CreateDecryptor(key, iv);

Thanks,
Karl
AnswerRe: Cannot use Java generated DES Key in C# Pin
Calin Tatar3-Mar-09 10:02
Calin Tatar3-Mar-09 10:02 
AnswerRe: Cannot use Java generated DES Key in C# Pin
karpolu3-Mar-09 11:33
karpolu3-Mar-09 11:33 
QuestionDefault oreintation landscape ,datetime and Tabname in the footer when user print the excel sheet by default. Pin
vikram_asv3-Mar-09 5:59
vikram_asv3-Mar-09 5:59 
QuestionTableAdapter and Transactions. [modified] Pin
hdv2123-Mar-09 5:50
hdv2123-Mar-09 5:50 
QuestionError Loading type during runtime Pin
Mustafa Ismail Mustafa3-Mar-09 3:45
Mustafa Ismail Mustafa3-Mar-09 3:45 
AnswerRe: Error Loading type during runtime Pin
Eddy Vluggen3-Mar-09 3:55
professionalEddy Vluggen3-Mar-09 3:55 
GeneralRe: Error Loading type during runtime Pin
Mustafa Ismail Mustafa3-Mar-09 3:59
Mustafa Ismail Mustafa3-Mar-09 3:59 
GeneralRe: Error Loading type during runtime Pin
Eddy Vluggen3-Mar-09 4:10
professionalEddy Vluggen3-Mar-09 4:10 
GeneralRe: Error Loading type during runtime Pin
Mustafa Ismail Mustafa3-Mar-09 4:11
Mustafa Ismail Mustafa3-Mar-09 4:11 
AnswerRe: Error Loading type during runtime Pin
J4amieC3-Mar-09 4:31
J4amieC3-Mar-09 4:31 
GeneralRe: Error Loading type during runtime Pin
Mustafa Ismail Mustafa3-Mar-09 4:38
Mustafa Ismail Mustafa3-Mar-09 4:38 
AnswerRe: Error Loading type during runtime Pin
Yusuf3-Mar-09 4:36
Yusuf3-Mar-09 4:36 
GeneralRe: Error Loading type during runtime Pin
Mustafa Ismail Mustafa3-Mar-09 4:39
Mustafa Ismail Mustafa3-Mar-09 4:39 
GeneralRe: Error Loading type during runtime Pin
Yusuf3-Mar-09 4:49
Yusuf3-Mar-09 4:49 
GeneralRe: Error Loading type during runtime Pin
Mustafa Ismail Mustafa3-Mar-09 4:52
Mustafa Ismail Mustafa3-Mar-09 4:52 
AnswerRe: Error Loading type during runtime Pin
Mustafa Ismail Mustafa3-Mar-09 4:55
Mustafa Ismail Mustafa3-Mar-09 4:55 
GeneralRe: Error Loading type during runtime Pin
Yusuf3-Mar-09 5:02
Yusuf3-Mar-09 5:02 

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

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