This is not actually a piece of code I would use, but rather something
from a book thats a mental exercise.
On Feb 4, 7:20 pm, Robert Walker li...@ruby-forum.com wrote:
John Merlino wrote in post #1044105:
The % is modulus (remainder)operatorand ^ is bitwise. In this
context, we take a file,
John Merlino wrote in post #1044105:
The % is modulus (remainder) operator and ^ is bitwise. In this
context, we take a file, and go through each character and encrypt it.
But why are the ^ and % operators used here:
def encrypt(reader, writer)
key_index = 0
while not reader.eof?
2 matches
Mail list logo