Sha256: 9958bd156625c368f6c96865d42639eba2b2ae9eeee008a84f60629c121366ef

Contents?: true

Size: 527 Bytes

Versions: 65

Compression:

Stored size: 527 Bytes

Contents

#!/usr/bin/env ruby

$: << File.expand_path('../lib', File.dirname(__FILE__))

require 'test/unit'
require 'spreadsheet'

module Spreadsheet
  module Excel
    class TestWorkbook < Test::Unit::TestCase
      def test_password_hashing
        hashing_module = Spreadsheet::Excel::Password
        # Some examples found on the web
        assert_equal(0xFEF1, hashing_module.password_hash('abcdefghij'))
        assert_equal(hashing_module.password_hash('test'), hashing_module.password_hash('zzyw'))
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 3 rubygems

Version Path
spreadsheet-1.1.3 test/workbook_protection.rb
spreadsheet-1.1.2 test/workbook_protection.rb
spreadsheet-1.1.1 test/workbook_protection.rb
spreadsheet-1.1.0 test/workbook_protection.rb
spreadsheet-1.0.9 test/workbook_protection.rb
spreadsheet-1.0.8 test/workbook_protection.rb
spreadsheet-1.0.7 test/workbook_protection.rb
spreadsheet-1.0.6 test/workbook_protection.rb
spreadsheet-1.0.5 test/workbook_protection.rb
spreadsheet-1.0.4 test/workbook_protection.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/spreadsheet-1.0.3/test/workbook_protection.rb
spreadsheet-1.0.3 test/workbook_protection.rb
spreadsheet-1.0.2 test/workbook_protection.rb
spreadsheet-1.0.1 test/workbook_protection.rb
spreadsheet-1.0.0 test/workbook_protection.rb
spreadsheet-0.9.9 test/workbook_protection.rb
spreadsheet-0.9.8 test/workbook_protection.rb
spreadsheet-0.9.7 test/workbook_protection.rb
spreadsheet-0.9.6 test/workbook_protection.rb
spreadsheet-0.9.5 test/workbook_protection.rb