There are tons of functions along those lines. Your query is not very specific. What kind of algorithm do you want, public-key or secret-key? What size key? Blocksize? whatever. You've just defined an abstraction that includes every single encryption function known to man.... -derek