optical/EMBOS/Users/EmbFunc/security/password.h

49 lines
532 B
C
Raw Permalink Normal View History

2025-09-04 01:45:08 +00:00
#ifndef __PASSWORD_H__
#define __PASSWORD_H__
#include "config.h"
#define PSWDSTR_LEN 20 // <20><><EFBFBD><EFBFBD><EBB4AE><EFBFBD><EFBFBD>
#define NORMAL_MIN 1
#define NORMAL_MAX 5000
#define UNLOCK_MIN 5200
#define UNLOCK_MAX 5300
#define LOCK_MIN 5200
#define LOCK_MAX 5300
#define TIME_MUTI 6
typedef struct
{
u32 clientId;
u32 cpuId;
int thishours;
int totalhours;
int nexttotaltime;
int thistime;
int totaltime;
int rand1;
int rand2;
}PswdCtrl;
int DecodePswdString(PswdCtrl * pCtrl, char * pswdStr, u8 clientId);
#endif