问题
i want to calculate 32 bit CRC value for 'input field value" in Ruby on rails. need the sample code , please help me anyone.
回答1:
You could use Ruby's Zlib module.
require 'zlib'
crc32 = Zlib::crc32('input field value')
来源:https://stackoverflow.com/questions/4273281/how-to-calculate-32-bit-crc-in-ruby-on-rails