How to calculate 32 bit CRC in Ruby on rails?

后端 未结 1 1350
一整个雨季
一整个雨季 2021-02-05 02:25

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条回答
  •  礼貌的吻别
    2021-02-05 03:20

    You could use Ruby's Zlib module.

    require 'zlib'
    crc32 = Zlib::crc32('input field value')
    

    0 讨论(0)
提交回复
热议问题