Module: Krikri::Md5Minter

Defined in:
lib/krikri/md5_minter.rb

Class Method Summary collapse

Class Method Details

.create(id, prefix = nil) ⇒ Object


3
4
5
6
# File 'lib/krikri/md5_minter.rb', line 3

def self.create(id, prefix = nil)
  id = add_prefix(prefix.to_s, id) unless prefix.nil?
  Digest::MD5.hexdigest(id)
end