logging file encryption