update cipher and decipher calls to use stream methods