使用C#在linux中更新.htpasswd文件 [英] update .htpasswd file in linux using C#
本文介绍了使用C#在linux中更新.htpasswd文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
各位大家好,我想使用C#dot net程序在linux中更新.htpasswd文件。
是否可以更新.htpasswd?
请帮助我我有知道c#但不使用linux。
Hello everyone , I want to update .htpasswd file in linux using C# dot net program.
Is it possible to update .htpasswd ?
please help me I have knowledge of c# but not use to of linux .
推荐答案
这是.htpasswd文件格式的简短文字说明:https://en.wikipedia.org/wiki/Htpasswd [ ^ ]
这是一段声称像unixcrypt()一样工作的C#代码
功能: Unix crypt的AC#实现() [ ^ ]
有了这个,您应该能够编写一段可以直接操作密码文件的C#代码(例如le a .htpasswd或类似文件......)。
Here is a short text description of the format of a .htpasswd file: https://en.wikipedia.org/wiki/Htpasswd[^]
Here is a piece of C# code that claims to work like the unixcrypt()
function: A C# implementation of Unix crypt()[^]
With this you should be able to write a piece of C# code that can directly manipulate a password file (for example a .htpasswd or similar file...).
这篇关于使用C#在linux中更新.htpasswd文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文