private string EncryptAsBase64(string value)
{
if (String.IsNullOrEmpty(value))
throw new ArgumentNullException("value");
return Convert.ToBase64String(ProtectedData.Protect(Encoding.UTF8.GetBytes(value), _entropy, DataProtectionScope.LocalMachine));
}