C code for file encryption using 256 bits