mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_crypt): Update rdoc and state that this
function is system dependent. Reviewed by nobu, thanks to @takai. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f5482e4c38
commit
34205bc4ec
2 changed files with 18 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Mon Feb 27 17:00:15 2012 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
|
* string.c (rb_str_crypt): Update rdoc and state that this
|
||||||
|
function is system dependent. Reviewed by nobu, thanks to
|
||||||
|
@takai.
|
||||||
|
|
||||||
Mon Feb 27 17:03:20 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Feb 27 17:03:20 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): since methods
|
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): since methods
|
||||||
|
|
17
string.c
17
string.c
|
@ -6771,12 +6771,19 @@ rb_str_oct(VALUE str)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* str.crypt(other_str) -> new_str
|
* str.crypt(salt_str) -> new_str
|
||||||
*
|
*
|
||||||
* Applies a one-way cryptographic hash to <i>str</i> by invoking the standard
|
* Applies a one-way cryptographic hash to <i>str</i> by invoking the
|
||||||
* library function <code>crypt</code>. The argument is the salt string, which
|
* standard library function <code>crypt(3)</code> with the given
|
||||||
* should be two characters long, each character drawn from
|
* salt string. While the format and the result are system and
|
||||||
* <code>[a-zA-Z0-9./]</code>.
|
* implementation dependent, using a salt matching the regular
|
||||||
|
* expression <code>^[a-zA-Z0-9./]{2}</code> should be safe and valid
|
||||||
|
* on any platform, in which only the first two characters are
|
||||||
|
* significant.
|
||||||
|
*
|
||||||
|
* This method is for use in system specific scripts, so if you want
|
||||||
|
* a cross-platform hash function consider using Digest or OpenSSL
|
||||||
|
* instead.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue