string Crypt_CHAP_MSCHAPv1::str2unicode (string $str)
string Crypt_CHAP_MSCHAPv1::str2unicode
This method generates converts the given string to unicode.
string $str - the string to be unicoded
string - a String containing unicode representation of the given string
This function can not be called statically.
Example 35-1. Using Crypt_CHAP_MSCHAPv1::str2unicode()
<?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv1(); echo bin2hex($cr->str2unicode('MyPw')); ?>