add encrypt_file and decrypt_file function

Signed-off-by: riankashyap <riankashyap@gmail.com>