public IDictionary <string, string> GetValues()
 {
     if (IsEncrypted)
     {
         try
         {
             return(Values.ToDictionary(k => k.Key, v => string.IsNullOrEmpty(v.Value) ? string.Empty : Encoding.Default.GetString(ProtectedData.Unprotect(Convert.FromBase64String(v.Value), reason))));
         }
         catch (Exception e)
         {
             throw new CliException("Failed to decrypt settings. Encrypted settings only be edited through 'func settings add'.", e);
         }
     }
     else
     {
         return(Values.ToDictionary(k => k.Key, v => v.Value));
     }
 }