public static string CreateEncryptedPassword(PasswordEncryptionMode mode, string plainPassword) { switch (mode) { case PasswordEncryptionMode.MD5: return(plainPassword.MD5Hash(Encoding.ASCII)); case PasswordEncryptionMode.SHA1_IntraGame: return(EncryptIntraGamePassword(plainPassword)); case PasswordEncryptionMode.SHA2_512: return(EncryptPasswordWithSHA2(plainPassword)); default: throw new NotImplementedException(); } }
public abstract long Create(string title , string firstName , string surname , string displayName , string personalID , string alias , string avatar , char gender , string username , string password , PasswordEncryptionMode passwordEncMode , string email , bool isEmailVerified , string securityQuestion , string securityAnswer , int countryID , int?regionID , string signupIP , int signupCountryID , string address1 , string address2 , string streetname , string streetnumber , string zip , string city , DateTime?birth , string currency , string mobilePrefix , string mobile , string phonePrefix , string phone , int domainID , string language , string affiliateMarker , bool allowNewsEmail , bool allowSmsOffer , string taxCode , DateTime now , DateTime?completeProfile , int intendedVolume , string dOBPlace , bool IsMobileSignup , string Preferences = null );