src/twin-bcrypt.js
function string2utf8Bytes(s) {
        var utf8 = unescape(encodeURIComponent(s)),
            len = utf8.length,
            bytes = new Array(len);
        for (var i = 0; i < len; i++) {
            bytes[i] = utf8.charCodeAt(i);
        }
        return bytes;
    }
function string2utf8Bytes(s) {
        var utf8 = unescape(encodeURIComponent(s)),
            len = utf8.length,
            bytes = new Array(len);
        for (var i = 0; i < len; i++) {
            bytes[i] = utf8.charCodeAt(i);
        }
        return bytes;
    }
function string2utf8Bytes ( s ) { var utf8 = unescape ( encodeURIComponent ( s ) ) , len = utf8 . length , bytes = new Array ( len ) ; for ( var i = 0 ; i < len ; i ++ ) { bytes [ i ] = utf8 . charCodeAt ( i ) ; } return bytes ; }
utf-8 conversion for browsers and Node.
utf - 8 conversion for browsers and Node .