I\'m receiving a string from an external process. I want to use that String to make a filename, and then write to that file. Here\'s my code snippet to do this:
Pick your poison from the options presented by commons-codec, example:
String safeFileName = DigestUtils.sha1(filename);