P
Patrick Plattes
Hello,
i had a problem with str.crypt - i got every time the same result. The
problem is, that this method only use the first 8 characters of the string:
irb(main):022:0> "1234567".crypt('aa')
=> "aaOK9MRbwVNmQ"
irb(main):023:0> "12345678".crypt('aa')
=> "aaNN3X.PL2piw"
irb(main):024:0> "123456789".crypt('aa')
=> "aaNN3X.PL2piw"
If it is a feature not a bug, it should not be an undocumented feature
;-) . ruby-doc.org doesn't told me about this behaviour.
Have a nice day,
Patrick
i had a problem with str.crypt - i got every time the same result. The
problem is, that this method only use the first 8 characters of the string:
irb(main):022:0> "1234567".crypt('aa')
=> "aaOK9MRbwVNmQ"
irb(main):023:0> "12345678".crypt('aa')
=> "aaNN3X.PL2piw"
irb(main):024:0> "123456789".crypt('aa')
=> "aaNN3X.PL2piw"
If it is a feature not a bug, it should not be an undocumented feature
;-) . ruby-doc.org doesn't told me about this behaviour.
Have a nice day,
Patrick