Class: Kodo::Algorithms::Sha1

Inherits:
Base
  • Object
show all
Defined in:
lib/kodo/algorithms/sha1.rb

Constant Summary

Constants inherited from Base

Base::DEFAULT_SEED_LIBRARY

Instance Attribute Summary

Attributes inherited from Base

#count, #max_length, #name, #seed

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Kodo::Algorithms::Base

Instance Method Details

#createObject



4
5
6
7
8
9
# File 'lib/kodo/algorithms/sha1.rb', line 4

def create
  for i in 1..@count do
    seed = DEFAULT_SEED_LIBRARY.base64
    puts Digest::SHA1.hexdigest(seed)
  end
end