31

i want to calculate 32 bit CRC value for 'input field value" in Ruby on rails. need the sample code , please help me anyone.

Nakilon
  • 34,866
  • 14
  • 107
  • 142
Jeyavel
  • 2,974
  • 10
  • 38
  • 48

1 Answers1

47

You could use Ruby's Zlib module.

require 'zlib'
crc32 = Zlib::crc32('input field value')
rwilliams
  • 21,188
  • 6
  • 49
  • 55