passwords handling now safe

bin verfify  and fix code
This commit is contained in:
Roland Drabesch
2023-01-24 16:36:01 +01:00
parent 86dd19230f
commit 43a29dd57e
3 changed files with 48 additions and 15 deletions
@@ -206,6 +206,27 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
return false;
}
/// <summary>
/// Verify Meter password file
/// generated passowrd file has to be present
/// </summary>
/// <returns></returns>
/// <remarks date="2023-JAn-24" author="Thomas Wiedebusch&Roalnd Drabesch">
/// - Initial.
/// </remarks>
public Boolean VerifyMeterPwdFile()
{
if (_hashedPasswordFile == null)
{
return false;
}
return _meterFile.VerifyMeterFile(StrPasswordFileName, _hashedPasswordFile);
}
/// <summary>
/// Erase the meter password file
/// </summary>