c# - 如何在 asp.net 中使用符合 fips 140-2 标准的随机数生成器生成 session ID

标签 c# asp.net session fips

我在 Windows 操作系统的安全策略设置中启用了 FIPS 本地/组安全策略标志,但我不知道如何在 asp.net 中使用 FIPS 140-2 兼容随机数生成器生成 session ID。是否涉及编码或设置FIPS Local/Group Security Policy Flag后自动生成?

最佳答案

Effects of Setting FIPS Local/Group Security Policy Flag

When setting the FIPS local/group security policy flag, the behavior of several Microsoft components and products are affected. The most noticeable difference will be that the components enforcing this setting will only use those algorithms approved or allowed in FIPS mode. The specific changes to the products listed above are:

...

Any Microsoft .NET Framework applications, such as Microsoft ASP.NET or Windows Communication Foundation (WCF), only allow algorithm implementations that are validated to FIPS 140, meaning only classes that end in "CryptoServiceProvider" or "Cng" can be used. Any attempt to create an instance of other cryptographic algorithm classes or create instances that use non-allowed algorithms will cause an InvalidOperationException exception.

https://technet.microsoft.com/en-us/library/security/cc750357.aspx

关于c# - 如何在 asp.net 中使用符合 fips 140-2 标准的随机数生成器生成 session ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34135355/

相关文章:

java - 当 Redis 不可用时使用默认的 Spring session

c# - 缓冲区缓存清理时出现“超时已过期”错误

html - 使用按钮作为链接(GET 请求)

c# - 将 TransactionScope 与 System.Data.OracleClient 结合使用 - TransactionAbortedException

C# Rest 调用通过证书

c# - 在 C# 中有没有办法查看通过 ASPX 页面生成的代码?

php - 为什么用户的 $_SESSION 变量出现在不同的用户页面上?

ios - 将 opentok 视频 session 集成到 parse.com + iOS 应用程序中

c# - 我如何从 mysql 数据库获取和插入格式化文本并使用它

c# - 在同一个程序集中混合单元测试和集成测试