Class: String

Inherits:
Object
  • Object
show all
Includes:
Crypt::Noise, Crypt::StringXor
Defined in:
lib/crypt/noise.rb,
lib/crypt/stringxor.rb,
lib/crypt/bytes-compat.rb

Instance Method Summary collapse

Methods included from Crypt::StringXor

#^

Methods included from Crypt::Noise

#add_noise, #remove_noise

Instance Method Details

#bytesObject



10
11
12
13
14
# File 'lib/crypt/bytes-compat.rb', line 10

def bytes
  bytes = []
  self.each_byte {|b| bytes << b}
  bytes
end

#getbyte(index) ⇒ Object



4
5
6
# File 'lib/crypt/bytes-compat.rb', line 4

def getbyte(index)
  self[index]
end