C application to encrypt a text into a hash