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
keeguon-spreadsheet-0.9.3 test/workbook_protection.rb
spreadsheet-0.9.4 test/workbook_protection.rb
spreadsheet-0.9.3 test/workbook_protection.rb
spreadsheet-0.9.2 test/workbook_protection.rb
spreadsheet-0.9.1 test/workbook_protection.rb
spreadsheet-0.9.0 test/workbook_protection.rb
spreadsheet-0.8.9 test/workbook_protection.rb
spreadsheet-0.8.8 test/workbook_protection.rb
spreadsheet-0.8.7 test/workbook_protection.rb
spreadsheet-0.8.6 test/workbook_protection.rb
spreadsheet-0.8.5 test/workbook_protection.rb
spreadsheet-0.8.4 test/workbook_protection.rb
spreadsheet-0.8.3 test/workbook_protection.rb
spreadsheet-0.8.2 test/workbook_protection.rb
spreadsheet-0.8.1 test/workbook_protection.rb
spreadsheet-0.8.0 test/workbook_protection.rb
spreadsheet-0.7.9 test/workbook_protection.rb
spreadsheet-0.7.8 test/workbook_protection.rb
spreadsheet-0.7.7 test/workbook_protection.rb
spreadsheet-0.7.6 test/workbook_protection.rb