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.3.3 test/workbook_protection.rb
spreadsheet-1.3.2 test/workbook_protection.rb
spreadsheet-1.3.1 test/workbook_protection.rb
spreadsheet-1.3.0 test/workbook_protection.rb
spreadsheet-1.2.9 test/workbook_protection.rb
spreadsheet-1.2.8 test/workbook_protection.rb
spreadsheet-1.2.7 test/workbook_protection.rb
spreadsheet-1.2.6 test/workbook_protection.rb
spreadsheet-1.2.5 test/workbook_protection.rb
spreadsheet-1.2.4 test/workbook_protection.rb
spreadsheet-1.2.3 test/workbook_protection.rb
spreadsheet-1.2.2 test/workbook_protection.rb
spreadsheet-1.2.1 test/workbook_protection.rb
spreadsheet-1.2.0 test/workbook_protection.rb
spreadsheet-1.1.9 test/workbook_protection.rb
spreadsheet-1.1.8 test/workbook_protection.rb
spreadsheet-1.1.7 test/workbook_protection.rb
spreadsheet-1.1.6 test/workbook_protection.rb
spreadsheet-1.1.5 test/workbook_protection.rb
spreadsheet-1.1.4 test/workbook_protection.rb