如何随机是System.Guid.NewGuid()?System、Guid、NewGuid

2023-09-02 01:25:19 作者:寂寞说想你

我知道这可能听起来像一个毫无意义的问题,但听我说......

I know this may sounds like a pointless question, but hear me out...

我基本上想知道我是否可以信任的GUID生成一个值,这将是唯一的100%的时间,也不可能predict。

I basically want to know if I can trust the GUID to generate a value which will be unique 100% of the time and impossible to predict.

我基本上滚动我在登录系统的网站,并想知道,如果GUID是足够安全的会话cookie。

I'm basically rolling my on login system for a website and want to know if the GUID is secure enough for session cookies.

在GUID是如何产生的将是pciated评价答案多少AP $ P $的任何背景。

Any background on how the GUID is generated would be much appreciated in evaluating the answers.

感谢您​​的链接,重复的问题,不过,我的问题是特定于.NET框架。

推荐答案

这里是一个极好的雷蒙德陈击穿