function Crypt(){
   this.enctype = 0;
}

//---------------- public methods ----------------
Crypt.prototype.Encrypt = function (sVal){
   if (this.enctype == 0){
      md = new Encryptor_md5;
      return md.Encrypt(sVal);
   }
//   else if (this.enctype == 1){
//   }
}

Crypt.prototype.setType = function (iType){
   this.enctype = iType;
}

Crypt.prototype.getType = function (){
   if (this.enctype == 0){
      return 'md5';
   }
   else if (this.enctype == 1){
      return 'apr1';
   }
}

