A simple utility to expose the C crypt function to a parent process via pipes.
Pseudocode:
- Read a line from stdin into
key
- Read a line from stdin into
salt
- Run
crypt(key, salt)
- Write the result to stdout or a single line containing only "!" on error
- Goto 1
The process should terminate cleanly upon EOF on stdin.