I've just modified tran to operate off the histogram of inputs and have posted the code to sci.crypt. It's also available from me by e-mail. - Carl