00001
00002
00003
00004
00005 #ifndef __GPASSWORD_H
00006 #define __GPASSWORD_H
00007
00008 class LgiClass GPassword
00009 {
00010 char *Data;
00011 int Len;
00012
00013 void Process(char *Out, char *In, int Len);
00014
00015 public:
00016 GPassword(GPassword *p = 0);
00017 virtual ~GPassword();
00018
00019 bool IsValid() { return Data AND Len > 0; }
00020 void Get(char *Buf);
00021 void Set(char *Buf);
00022 bool Serialize(ObjProperties *Options, char *Option, int Write);
00023 void Serialize(char *Password, int Write);
00024
00025 GPassword &operator =(GPassword &p);
00026 bool operator ==(GPassword &p);
00027 };
00028
00029 #endif