21 references to GetBytes
Aspire.Dashboard (1)
src\Shared\TokenGenerator.cs (1)
28
return RandomNumberGenerator.
GetBytes
(size);
Aspire.Hosting (1)
src\Shared\TokenGenerator.cs (1)
28
return RandomNumberGenerator.
GetBytes
(size);
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
33
: Convert.ToHexString(RandomNumberGenerator.
GetBytes
(4));
64
renamedVolumes[name] = $"{name}-{Convert.ToHexString(RandomNumberGenerator.
GetBytes
(4))}";
dotnet-user-jwts (1)
Helpers\SigningKeysHandler.cs (1)
61
var newKeyMaterial = System.Security.Cryptography.RandomNumberGenerator.
GetBytes
(signingKeyLength);
JwtSample (1)
Startup.cs (1)
14
private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(RandomNumberGenerator.
GetBytes
(32));
System.Security.Cryptography (15)
System\Security\Cryptography\AesImplementation.cs (2)
32
IV = RandomNumberGenerator.
GetBytes
(BlockSize / BitsPerByte);
37
Key = RandomNumberGenerator.
GetBytes
(KeySize / BitsPerByte);
System\Security\Cryptography\DesImplementation.cs (1)
43
IV = RandomNumberGenerator.
GetBytes
(BlockSize / BitsPerByte);
System\Security\Cryptography\HMACMD5.cs (1)
32
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA1.cs (1)
32
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA256.cs (1)
31
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA3_256.cs (1)
45
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA3_384.cs (1)
45
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA3_512.cs (1)
45
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA384.cs (1)
31
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA512.cs (1)
31
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\RC2Implementation.cs (2)
49
IV = RandomNumberGenerator.
GetBytes
(BlockSize / BitsPerByte);
54
Key = RandomNumberGenerator.
GetBytes
(KeySize / BitsPerByte);
System\Security\Cryptography\TripleDesImplementation.cs (2)
42
IV = RandomNumberGenerator.
GetBytes
(BlockSize / BitsPerByte);
47
Key = RandomNumberGenerator.
GetBytes
(KeySize / BitsPerByte);