We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
如果您确实想打乱字符,可以将
random
与固定种子一起使用:You can use
random
with fixed seed if you really want to scramble characters:虽然我不太同意你想要做什么,这里有一个 MD5 javascript 库的链接 (假设您想要做的是某种加密)。至于 C# 部分,它是一个内置功能。
Although I don't really agree about what you were trying to do, here's a link to MD5 javascript library (assuming what you're trying to do is some kind of encryption). As for the C# part, it's a built in feature.
您可以使用任何内置的 .NET 类来生成随机数并使用它们来打乱您的字符串。对于所有后续的打乱尝试,您可以使用第一次打乱操作的结果。这假设第一次调用的结果存储在某处。
You can use any of the built in .NET classes to generate random numbers and use these to scramble your string. For all the subsequent scramble attempts you can use the result from the first scramble operation. This assumes that the result from the first call is stored somewhere.