Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getUNIBytes (0.07 sec)

  1. src/main/java/jcifs/smb/NtlmUtil.java

         */
        public static byte[] nTOWFv2 ( String domain, String username, byte[] passwordHash ) {
            MessageDigest hmac = Crypto.getHMACT64(passwordHash);
            hmac.update(Strings.getUNIBytes(username.toUpperCase()));
            hmac.update(Strings.getUNIBytes(domain));
            return hmac.digest();
        }
    
    
        /**
         * @param password
         * @return nt password hash
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 9.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Strings.java

            }
            return str.getBytes(encoding);
        }
    
    
        /**
         * 
         * @param str
         * @return the string as bytes (UTF16-LE)
         */
        public static byte[] getUNIBytes ( String str ) {
            return getBytes(str, UNI_ENCODING);
        }
    
    
        /**
         * 
         * @param str
         * @return the string as bytes (ASCII)
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            i += 4;
            Encdec.enc_uint32le(0, this.buf, i);
            i += 4;
            Encdec.enc_uint32le(len + 1, this.buf, i);
            i += 4;
            System.arraycopy(Strings.getUNIBytes(s), 0, this.buf, i, len * 2);
            i += len * 2;
            this.buf[ i++ ] = (byte) '\0';
            this.buf[ i++ ] = (byte) '\0';
            advance(i - this.index);
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
Back to top