Method: Rex::Text.ror13_hash
- Defined in:
- lib/rex/text.rb
.ror13_hash(name) ⇒ Fixnum
Calculate the ROR13 hash of a given string
1651 1652 1653 1654 1655 |
# File 'lib/rex/text.rb', line 1651 def self.ror13_hash(name) hash = 0 name.unpack("C*").each {|c| hash = ror(hash, 13); hash += c } hash end |