To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / d2 / d229908205785bb3d05ed246eb92f48aebe96ceb.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (418 Bytes)

1
# $Id: testpsw.rb 72 2006-04-24 21:58:14Z blackhedd $
2
#
3
#
4

    
5

    
6
$:.unshift "lib"
7

    
8
require 'net/ldap'
9
require 'stringio'
10

    
11

    
12
class TestPassword < Test::Unit::TestCase
13

    
14
  def setup
15
  end
16

    
17

    
18
  def test_psw
19
    assert_equal( "{MD5}xq8jwrcfibi0sZdZYNkSng==", Net::LDAP::Password.generate( :md5, "cashflow" ))
20
    assert_equal( "{SHA}YE4eGkN4BvwNN1f5R7CZz0kFn14=", Net::LDAP::Password.generate( :sha, "cashflow" ))
21
  end
22

    
23

    
24

    
25

    
26
end
27

    
28