what would be the best way of SHA256’ing a string in juce? I was doing this:
ScopedPointer<char> rawChars = new char[input.length()]; for (long i=0; i<input.length(); i++) rawChars[i] = (char)input[i]; SHA256 sha(rawChars, input.length());
But that seems like a rather bad idea considering some chars might be wide chars!
I looked at various other ways of doing things, but I kind of got stuck…