support reading data from stdin

filename is set to <sha256 of input data>.dat