Click here to Skip to main content
14,663,307 members
Home » Discussions » .NET (Core and Framework)

.NET (Core and Framework)

GeneralRe: How to upgrade from .NET 1.1 to .NET 2.0 Pin
CompMan441-Mar-07 4:39
MemberCompMan441-Mar-07 4:39 
GeneralRe: How to upgrade from .NET 1.1 to .NET 2.0 Pin
M-Hall2-Mar-07 16:51
MemberM-Hall2-Mar-07 16:51 
GeneralRe: How to upgrade from .NET 1.1 to .NET 2.0 Pin
CompMan443-Mar-07 11:42
MemberCompMan443-Mar-07 11:42 
QuestionScroll Bar Position Mirroring Pin
Rabbit176-Feb-07 7:30
MemberRabbit176-Feb-07 7:30 
Questioncan i use ILDASM(MS Disassember) to extract binary's dependency at command prompt Pin
Mushtaque Nizamani6-Feb-07 4:03
MemberMushtaque Nizamani6-Feb-07 4:03 
QuestionAssembly in GAC Pin
vasini6-Feb-07 3:28
Membervasini6-Feb-07 3:28 
AnswerRe: Assembly in GAC Pin
Abisodun6-Feb-07 7:36
MemberAbisodun6-Feb-07 7:36 
QuestionHow to decrypt a string? Pin
Ralph A. Moritz6-Feb-07 2:55
MemberRalph A. Moritz6-Feb-07 2:55 
Hi everyone,

I'm trying to decrypt some encrypted text that has been Base64 encoded. The following code throws a System.Security.Cryptography.CryptographicException with the message "Length of the data to decrypt is invalid." I'd appreciate it if someone could demontrate the correct way of doing this and/or point out the flaws in my code.

System::String^ Quantum::Util::DecryptString(System::String^ str)
using namespace System::IO;
using namespace System::Security::Cryptography;

MemoryStream^ ms = gcnew MemoryStream;
RijndaelManaged^ rm = gcnew RijndaelManaged;
CryptoStream^ cs = gcnew CryptoStream(ms, rm->CreateDecryptor(),
StreamWriter^ sw = gcnew StreamWriter(cs);

try {
array<System::Byte>^ bytes = System::Convert::FromBase64String(str);
} finally {

return System::Convert::ToString(ms->ToArray());
QuestionFramework compatibility problem [modified] Pin
Abhishek Joshi6-Feb-07 2:49
MemberAbhishek Joshi6-Feb-07 2:49 
QuestionHow to call a function from thread? Pin
Banks K5-Feb-07 19:26
MemberBanks K5-Feb-07 19:26 
QuestionC#.Net Pin
Sri harini5-Feb-07 18:02
MemberSri harini5-Feb-07 18:02 
AnswerRe: C#.Net Pin
Christian Graus5-Feb-07 18:12
mveChristian Graus5-Feb-07 18:12 
QuestionHelp with formatted reads from String^ Pin
largenqcd4-Feb-07 18:13
Memberlargenqcd4-Feb-07 18:13 
AnswerRe: Help with formatted reads from String^ Pin
User 5838524-Feb-07 18:42
MemberUser 5838524-Feb-07 18:42 
GeneralRe: Help with formatted reads from String^ Pin
largenqcd5-Feb-07 3:37
Memberlargenqcd5-Feb-07 3:37 
GeneralRe: Help with formatted reads from String^ Pin
largenqcd5-Feb-07 14:43
Memberlargenqcd5-Feb-07 14:43 
Questionwhat is CodeDom ???? [modified] Pin
PavanPareta4-Feb-07 17:36
MemberPavanPareta4-Feb-07 17:36 
AnswerRe: what is code com ???? Pin
Christian Graus4-Feb-07 23:04
mveChristian Graus4-Feb-07 23:04 
GeneralRe: what is code com ???? Pin
DavidNohejl5-Feb-07 22:47
MemberDavidNohejl5-Feb-07 22:47 
AnswerRe: what is code com ???? Pin
Tim Paaschen4-Feb-07 23:18
MemberTim Paaschen4-Feb-07 23:18 
GeneralRe: what is CodeDom ???? Pin
PavanPareta5-Feb-07 19:25
MemberPavanPareta5-Feb-07 19:25 
AnswerRe: what is CodeDom ???? Pin
DavidNohejl5-Feb-07 22:53
MemberDavidNohejl5-Feb-07 22:53 
MemberPREDATORUNLEASHED2-Feb-07 21:49 
Christian Graus2-Feb-07 22:07
mveChristian Graus2-Feb-07 22:07 
GeneralGood evening Christian Pin
indian1432-Feb-07 22:39
Memberindian1432-Feb-07 22:39 

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.