如何加密Windows身份值?
我正在使用
x = System.Security.Principal.WindowsIdentity.GetCurrent().User.Value;
输出用户 Windows Identity 的输出。 这是输出外观的示例:
S-5-2-51-37518325-1542148351-9136563645-5621
我目前将其发送到.txt文件并阅读它,但是您可能会告诉任何经验丰富的人都可以访问文本文件,所以我如何将这些值争夺到它们不再能够追溯到其原始数字的点。
I'm using
x = System.Security.Principal.WindowsIdentity.GetCurrent().User.Value;
which outputs the users windows identity.
Here is an example of what the output looks like:
S-5-2-51-37518325-1542148351-9136563645-5621
I'm currently sending this to a .txt file and reading it but as you can probably tell anyone with a bit of experience can access the text file so how would I scramble these values to the point they are no longer able get traced back to their original numbers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用此类:
示例:
I use this class:
Example:
我的解决方案:
首先创建两个字符串:
然后使您的“ hwid”等于某种形式的Windows硬件/身份。
在它的下方,您将需要使用此信息进行加密:
要查看它是否有效,
请让我知道是否有任何效率更高或不风险曝光的方法?谢谢 :)
My solution:
Create two strings first called:
Then make your "HWID" equal some form of windows hardware/identity.
Underneath it you will want to encrypt using this:
And to see your if it worked just type:
Please let me know if there is any ways that are either more efficient or not risk exposure? thanks :)