Translate from Java to C#: simple code to re-encode a string
- by Dr. Zim
We were sent this formula to encrypt a string written in Java:
String myInput = "test1234";
MessageDigest md = MessageDigest.getInstance("SHA");
byte[] myD = md.digest(myInput.getBytes());
BASE64Encoder en64 = new BASE64Encoder();
String myOutput = new String (
…