Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getAnsiHash (0.11 sec)

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

         * {@inheritDoc}
         *
         * @see jcifs.smb.NtlmPasswordAuthenticator#getAnsiHash(jcifs.CIFSContext, byte[])
         */
        @Override
        public byte[] getAnsiHash ( CIFSContext tc, byte[] chlng ) throws GeneralSecurityException {
            if ( this.hashesExternal ) {
                return this.ansiHash;
            }
            return super.getAnsiHash(tc, chlng);
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                        ntHash = new byte[0];
                        capabilities &= ~SmbConstants.CAP_EXTENDED_SECURITY;
                    } else if (session.transport.server.encryptedPasswords) {
                        lmHash = auth.getAnsiHash( session.transport.server.encryptionKey );
                        ntHash = auth.getUnicodeHash( session.transport.server.encryptionKey );
                        // prohibit HTTP auth attempts for the null session
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

                    this.passwordLength = 1;
                }
                else if ( this.server.encryptedPasswords ) {
                    // encrypted
                    try {
                        this.password = pwAuth.getAnsiHash(this.ctx, this.server.encryptionKey);
                    }
                    catch ( GeneralSecurityException e ) {
                        throw new RuntimeCIFSException("Failed to encrypt password", e);
                    }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

                            session.auth.password.length() > 0 )) {
    
                if( session.transport.server.encryptedPasswords ) {
                    // encrypted
                    password = session.auth.getAnsiHash( session.transport.server.encryptionKey );
                    passwordLength = password.length;
                } else if( DISABLE_PLAIN_TEXT_PASSWORDS ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                        this.primaryDomain = a.getUserDomain() != null ? a.getUserDomain().toUpperCase() : "?";
                        if ( server.encryptedPasswords ) {
                            this.lmHash = a.getAnsiHash(tc, server.encryptionKey);
                            this.ntHash = a.getUnicodeHash(tc, server.encryptionKey);
                            // prohibit HTTP auth attempts for the null session
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 17 10:20:23 UTC 2019
    - 8.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

         * 
         * @param tc
         * @param chlng
         * @return the hash for the given challenge
         * @throws GeneralSecurityException
         */
        public byte[] getAnsiHash ( CIFSContext tc, byte[] chlng ) throws GeneralSecurityException {
            switch ( tc.getConfig().getLanManCompatibility() ) {
            case 0:
            case 1:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

            return d ? domain + "\\" + username : username;
        }
    
    /**
     * Computes the 24 byte ANSI password hash given the 8 byte server challenge.
     */
        public byte[] getAnsiHash( byte[] challenge ) {
            if( hashesExternal ) {
                return ansiHash;
            }
            switch (LM_COMPATIBILITY) {
            case 0:
            case 1:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
Back to top