https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17097754782010-11-11T11:57:49ZRuby Issue Tracking SystemRuby master - Feature #4042: String#crypt shoud not accepted "\x00" as a salt.https://redmine.ruby-lang.org/issues/4042?journal_id=141292010-11-11T11:57:49Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>=begin<br>
String#crypt is the wrapper of crypt(3).<br>
POSIX says crypt(3)'s algorithm is implementation-defined.<br>
<a href="http://www.opengroup.org/onlinepubs/9699919799/functions/crypt.html" class="external">http://www.opengroup.org/onlinepubs/9699919799/functions/crypt.html</a><br>
So your expectation, some of String#crypt's behavior is platform-independent, is wrong.</p>
<p>Moreover new applications should use digests.<br>
=end</p>