public void DecryptAll(DecryptFormat format) { //this is going to stdout out, don't bother securing the memory here var decrypted = new Dictionary <string, dynamic>(); foreach (var k in _sman.Keys) { var v = _sman.Retrieve <dynamic>(k); decrypted[k] = v; } switch (format) { case DecryptFormat.PlainText: foreach (var k in decrypted.Keys) { Console.WriteLine($"{k}: { decrypted[k].ToString() }"); } break; default: var serializerOptions = JsonConvert.SerializeObject(decrypted, Formatting.Indented); Console.WriteLine(serializerOptions); break; } }