Initial commit
This commit is contained in:
7
app/helpers/salted_crc32.rb
Normal file
7
app/helpers/salted_crc32.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SaltedCrc32
|
||||
def self.generate_hash(value)
|
||||
Zlib::crc32(value + Barong::App.config.crc32_salt)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user