30

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
  • 32,203
  • 13
  • 95
  • 132
Jeyavel
  • 2,774
  • 9
  • 32
  • 45

1 Answers1

46

You could use Ruby's Zlib module.

require 'zlib'
crc32 = Zlib::crc32('input field value')
rwilliams
  • 20,165
  • 4
  • 46
  • 53