Announcement

Collapse
No announcement yet.

Exception im CryptoStream

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception im CryptoStream

    Code:
    FileStream fs = File.Open(FileName, FileMode.Create);
    Rijndael rij = Rijndael.Create();
    rij.GenerateIV();
    rij.Key = CreateKey(); // Gibt ein Byte-Array mit 32 Byte zurück
    
    // Hier erhalte ich eine Exception:
    CryptoStream cs = new CryptoStream(fs, rij.CreateDecryptor(), CryptoStreamMode.Write);
    Die Exception lautet:
    cs.Length" hat eine Ausnahme vom Typ "System.NotSupportedException" verursacht. long {System.NotSupportedException}

    und ich habe keine Ahnung warum. Vielleicht kann jemand helfen?
Working...
X