a sample crc32 encrypt implementation.