dotnet / dotnet/dotnet-api-docs

Rijndael.Create in Main

Open
#1,028 0 comments 0 reactions 0 assignees View on GitHub
area-System.Security dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Why do you create Rijndael in Main? I think we do not need an instance of Rijndael to pass a key and a IV to the EncryptStringToBytes and DecryptStringFromBytes because these methods create own Rijndael's instances.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: f75dbabb-9969-e85c-1195-153fb2b6fe92
* Version Independent ID: 4c73e392-1752-fc6a-75fd-36f005e92bd6
* Content: [Rijndael Class (System.Security.Cryptography)](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.rijndael?view=netframework-4.7.2)
* Content Source: [xml/System.Security.Cryptography/Rijndael.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Security.Cryptography/Rijndael.xml)
* Product: **dotnet-api**
* GitHub Login: @mairaw
* Microsoft Alias: **mairaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.