lib/origami/encryption.rb in origami-1.2.2 vs lib/origami/encryption.rb in origami-1.2.3

- old
+ new

@@ -300,10 +300,12 @@ attr_writer :encryption_key attr_writer :encryption_dict attr_writer :stm_algo attr_writer :str_algo + private + def physicalize(options = {}) def build(obj, revision, options) #:nodoc: if obj.is_a?(EncryptedObject) # already built if options[:decrypt] == true @@ -1355,12 +1357,10 @@ return PADDING.dup if password.empty? # Fix for Ruby 1.9 bug password[0,32].ljust(32, PADDING) end def password_to_utf8(passwd) #:nodoc: - p=Origami::ByteString.new(passwd).to_utf8[0, 127] - hexprint p - p + Origami::ByteString.new(passwd).to_utf8[0, 127] end end end