52 lines
1.6 KiB
C#
52 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisPwd
|
|
{
|
|
/// <summary>
|
|
/// DB contents of:
|
|
/// - passwords,
|
|
/// - password-hashes (12 char from password - SHA1),
|
|
/// - Order number,
|
|
/// - Radio address and
|
|
/// - Skeleton key.
|
|
/// </summary>
|
|
public class MeterPwdDb
|
|
{
|
|
//password file length is 160 bytes (8 passwords a 20 bytes SHA1)
|
|
public const Int32 PwdFileLength = 160;
|
|
|
|
/// <summary>
|
|
/// Skeleton key index in password list.
|
|
/// </summary>
|
|
public const Int32 SkeletonKeyIdx = 2;
|
|
/// <summary>
|
|
/// Password Level 8 index in 8 elements password list.
|
|
/// </summary>
|
|
public const Int32 PwdLevel8Idx = 7;
|
|
/// <summary>
|
|
/// Order number for this Genesis.
|
|
/// </summary>
|
|
public Int64? OrderNumber = null;
|
|
/// <summary>
|
|
/// Optional radio address.
|
|
/// </summary>
|
|
public Int64? RadioAddress = null;
|
|
/// <summary>
|
|
/// Skeleton key for login if password file is not installed.
|
|
/// </summary>
|
|
public String Skeleton = "";
|
|
/// <summary>
|
|
/// Password, which is the Skeleton, if password file not installed, or the PwdLevel8, if the password file is installed .
|
|
/// </summary>
|
|
public String Password = "";
|
|
/// <summary>
|
|
/// List of hashes.
|
|
/// </summary>
|
|
public List<Byte[]> ListOfHashes = new List<Byte[]>();
|
|
/// <summary>
|
|
/// List of passwords.
|
|
/// </summary>
|
|
public List<Byte[]> ListOfPasswords = new List<Byte[]>();
|
|
}
|
|
} |