Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getAnsiHash (0.14 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: Wed Jun 12 15:45:55 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: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/NtlmAuthenticator.groovy

                this.challenge = challenge
            }
    
            @Override
            boolean check(Object credentials) {
                if (credentials instanceof String) {
                    byte[] hash = authentication.getAnsiHash(challenge)
                    byte[] clientChallenge = hash[16..-1] as byte[]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. 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: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  5. 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: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6.8K bytes
    - Viewed (0)
  6. 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: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Mar 17 10:20:23 UTC 2019
    - 8.8K bytes
    - Viewed (0)
  7. 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: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  8. 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: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
Back to top