Jump to content
Wikibooks The Free Textbook Project

Ruby Programming/Reference/Objects/String

From Wikibooks, open books for an open world
This page may need to be reviewed for quality.

String Class

Methods:

[edit | edit source ]

crypt(salt). Returns an encoded string using crypt(3). salt is a string with minimal length 2. If salt starts with "1ドル$", MD5 encryption is used, based on up to eight characters following "1ドル$". Otherwise, DES is used, based on the first two characters of salt.

AltStyle によって変換されたページ (->オリジナル) /