Use cryptostream module.