- improve encrypt utility to support different ciphers
- fix fgetln() loop