Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getUNIBytes (0.26 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/smb/NtlmPasswordAuthenticator.java

                        }
                    }
    
                    MessageDigest hmac = Crypto.getHMACT64(ntHash);
                    hmac.update(Strings.getUNIBytes(this.username.toUpperCase()));
                    hmac.update(Strings.getUNIBytes(this.domain.toUpperCase()));
                    byte[] ntlmv2Hash = hmac.digest();
                    hmac = Crypto.getHMACT64(ntlmv2Hash);
                    hmac.update(chlng);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

                // Unicode requires word alignment
                if ( ( ( dstIndex - this.headerStart ) % 2 ) != 0 ) {
                    dst[ dstIndex++ ] = (byte) '\0';
                }
                System.arraycopy(Strings.getUNIBytes(str), 0, dst, dstIndex, str.length() * 2);
                dstIndex += str.length() * 2;
                dst[ dstIndex++ ] = (byte) '\0';
                dst[ dstIndex++ ] = (byte) '\0';
            }
            else {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
Back to top