如何从给定的GUID预测下一个GUID? [英] How to predict the next GUID from a given GUID?

查看:236
本文介绍了如何从给定的GUID预测下一个GUID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已向我们的客户发送了10000封邮件,每封邮件都有一个格式

I have sent 10000 mails to our customers and each mail had a link of the format

http://example.com/LogIn?key={guid}

不幸的是 guid 我发送的是随机guids( Guid.NewGuid()生成的测试数据),所以客户都收到了无效链接...

Unfortunately the guid I sent were random guids (test data generated by Guid.NewGuid()) so the customers have all received invalid links...

基于我从web服务器接收的404s,我有一些我发出的guids。我已经读到,在窗口中的guid生成器是弱的,所以你可以预测从一个你已经有下一个guid。有谁知道如何?

Based on the 404s i receive from the webserver I have a few guids that I sent out. I have read that the guid generator in windows is weak so you can predict the next guid from one you already have. Does anyone know how? If i could do that I could make the guids I sent out valid so the links would work again.

推荐答案

Windows使用的方式生成的GUID已经改变了几次,并且在互联网上大量看似可靠的建议是完全错误的(也许是过时的,也许总是完全错误的)。

The way Windows has generated GUIDs has changed several times, and lots of seemingly reliable advice on the internet is completely wrong (maybe just out of date, maybe always completely wrong).

最后一次我研究了这个(几年前,可能是XP SP2),我直接下来到操作系统代码看看实际发生了什么,它正在生成一个随机数与安全随机数字生成器

The last time I looked into this (a few years ago, probably XP SP2), I stepped right down into the OS code to see what was actually happening, and it was generating a random number with the secure random number generator.

我怀疑你会有很多运气预测一个GUID从另一个如果你生成他们在默认方式。

I doubt you'll have much luck predicting one GUID from another if you generated them in the default way.

这篇关于如何从给定的GUID预测下一个GUID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆