lib/prawn/security/arcfour.rb in prawn-2.1.0 vs lib/prawn/security/arcfour.rb in prawn-2.2.0
- old
+ new
@@ -1,7 +1,5 @@
-# encoding: utf-8
-
# Implementation of the "ARCFOUR" algorithm ("alleged RC4 (tm)"). Implemented
# as described at:
# http://www.mozilla.org/projects/security/pki/nss/draft-kaukonen-cipher-arcfour-03.txt
#
# "RC4" is a trademark of RSA Data Security, Inc.
@@ -37,10 +35,10 @@
@i = @j = 0
end
def encrypt(string)
- string.unpack('c*').map{ |byte| byte ^ key_byte }.pack('c*')
+ string.unpack('c*').map { |byte| byte ^ key_byte }.pack('c*')
end
private
# Produces the next byte of key material in the stream (3.2 Stream Generation)