I am trying to write a function to take a string and sha512 it like so?
public string SHA512(string input) { string hash; ~magic~ return has
You could use the System.Security.Cryptography.SHA512 class
MSDN on SHA512
Here is an example, straigt from the MSDN
byte[] data = new byte[DATA_SIZE]; byte[] result; SHA512 shaM = new SHA512Managed(); result = shaM.ComputeHash(data);