string Crypt_CHAP_MSCHAPv1::str2unicode (
string $str
)
このメソッドは、指定した文字列を unicode に変換します。
string $str
- unicode 化する文字列。
string
- 指定した文字列を unicode 変換したものを返します。
This function can not be called statically.
Crypt_CHAP_MSCHAPv1::str2unicode() の使用
<?php
require_once 'Crypt/CHAP.php';
$cr = new Crypt_CHAP_MSCHAPv1();
echo bin2hex($cr->str2unicode('MyPw'));
?>