public string Decrypt(string inputString, string password) { var encrypted = EncryptHelper.ConvertStringToByte(inputString); return(DecryptStringFromBytes(encrypted, GetKeyArray(password), g_Iv)); }
public string Encrypt(string inputString, string password) { byte[] encrypted = EncryptStringToBytes(inputString, GetKeyArray(password), g_Iv); return(EncryptHelper.ConvertByteToString(encrypted)); //return Convert.ToBase64String(encrypted); }