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



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

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

#getbyte(index) ⇒ Object



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

def getbyte(index)
  self[index]
end