Viewing source for Recipe1510cs.aspx

<%@ Page %>
<script Language="c#" runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
	string clearText = "Try not.  Do.  Or do not.  There is no try.";
	System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
	
	Response.Write("Clear Text: " + clearText);
	Response.Write("<hr>");

	System.Security.Cryptography.SHA1 sha = new System.Security.Cryptography.SHA1Managed();
	byte[] input = encoder.GetBytes(clearText);
	byte[] output = sha.ComputeHash(input);
	Response.Write("Encrypted Text: " + encoder.GetString(output));
}
</script>