added utilities for decrypting file while reading from it