Skip to content

Instantly share code, notes, and snippets.

@nicholasmckinney
Created May 8, 2017 00:27
Show Gist options
  • Save nicholasmckinney/97d6aa2a6cf5493d78d9f47b982a81aa to your computer and use it in GitHub Desktop.
Save nicholasmckinney/97d6aa2a6cf5493d78d9f47b982a81aa to your computer and use it in GitHub Desktop.
Encrypt Random Shit with aspnet_regiis.exe
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- Encrypt Element -> C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -pef "secretStuff" "C:\Tools" -->
<!-- Decrypt Element -> C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -pdf "secretStuff" "C:\Tools" -->
<!-- See https://msdn.microsoft.com/en-us/library/2w117ede.aspx -->
<!-- Example by @subTee -->
<connectionStrings>
<add name="constr" connectionString="blah" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<secretStuff>
<!-- Random stuffblahdeblahblah -->
<element name="RandomShitMaybeBase64encodedThings" />
</secretStuff>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment