optical/EMBOS/Users/EmbFunc/security/password.h
2025-09-04 09:45:08 +08:00

49 lines
532 B
C

#ifndef __PASSWORD_H__
#define __PASSWORD_H__
#include "config.h"
#define PSWDSTR_LEN 20 // ÃÜÂë´®³¤¶È
#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