Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 428 for mypassword (0.05 seconds)

  1. internal/auth/credentials_test.go

    		{cred, Credentials{AccessKey: "myuser", SecretKey: cred.SecretKey}, false},
    		// Secret key is different in credentials to compare.
    		{cred, Credentials{AccessKey: cred.AccessKey, SecretKey: "mypassword"}, false},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.cred.Equal(testCase.ccred)
    		if result != testCase.expectedResult {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/ldap/LdapUtilTest.java

            assertEquals("\\2a\\29\\28uid=\\2a\\29\\29\\28|\\28uid=\\2a", LdapUtil.escapeValue("*)(uid=*))(|(uid=*"));
    
            // Test complex injection: admin)(&(password=*))
            assertEquals("admin\\29\\28&\\28password=\\2a\\29\\29", LdapUtil.escapeValue("admin)(&(password=*))"));
        }
    
        @Test
        public void test_escapeValue_allSpecialCharsInSequence() {
            assertEquals("\\5c\\2a\\28\\29\\00", LdapUtil.escapeValue("\\*()\0"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/util/ParameterUtilTest.java

            assertTrue("Result should contain password={cipher}, but was: " + result, result.contains("password={cipher}"));
    
            // Test with empty encryption target
            value = "password=";
            result = ParameterUtil.encrypt(value);
            assertTrue(result.contains("password={cipher}"));
    
            // Test with only whitespace value
            value = "password=   ";
            result = ParameterUtil.encrypt(value);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/ldap/LdapManagerTest.java

            LdapManager ldapManager = new LdapManager();
            ldapManager.init();
    
            // Complex injection attempt should be fully escaped
            String injectionAttempt = "admin)(|(password=*";
            String expected = "admin\\29\\28|\\28password=\\2a";
            assertEquals(expected, ldapManager.escapeLDAPSearchFilter(injectionAttempt));
        }
    
        @Test
        public void test_escapeLDAPSearchFilter_withAllSpecialCharacters() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

                    return "";
                }
            });
    
            assertEquals("errors.password_no_uppercase", systemHelper.validatePassword("password"));
            assertEquals("", systemHelper.validatePassword("Password"));
            assertEquals("", systemHelper.validatePassword("PASSWORD"));
        }
    
        @Test
        public void test_validatePassword_requireLowercase() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 44.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java

            // Get the password field using reflection
            Field passwordField = NtlmPasswordAuthenticator.class.getDeclaredField("password");
            passwordField.setAccessible(true);
    
            // Verify password exists before wipe
            char[] passwordBefore = (char[]) passwordField.get(authenticator);
            assertNotNull(passwordBefore, "Password should exist before wipe");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

        }
    
        /**
         * Test secure password wiping
         */
        @Test
        public void testSecureWipePassword() {
            String testPassword = "SecurePassword456!";
            NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("testuser", testPassword);
    
            // Verify password is set
            assertEquals(testPassword, auth.getPassword());
    
            // Wipe password
            auth.secureWipePassword();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.3K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/NtlmUtil.java

            return hmac.digest();
        }
    
        /**
         * Generates the NT password hash for the given password.
         *
         * @param password the password to hash
         * @return nt password hash
         */
        public static byte[] getNTHash(final String password) {
            if (password == null) {
                throw new NullPointerException("Password parameter is required");
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/NtlmUtilTest.java

            }
            return out;
        }
    
        @Test
        @DisplayName("getNTHash: known vector for 'password'")
        void testGetNTHash_knownVector() {
            // Arrange
            String password = "password";
            // Known NT hash for "password" (UTF-16LE MD4)
            // This is a well-known test vector: password -> 8846F7EAEE8FB117AD06BDD830B7586C
            byte[] expected = hex("8846F7EAEE8FB117AD06BDD830B7586C");
    
            // Act
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12K bytes
    - Click Count (1)
  10. tests/test_security_oauth2.py

                    "msg": "String should match pattern '^password$'",
                    "input": grant_type,
                    "ctx": {"pattern": "^password$"},
                }
            ]
        }
    
    
    def test_strict_login_correct_grant_type():
        response = client.post(
            "/login",
            data={"username": "johndoe", "password": "secret", "grant_type": "password"},
        )
        assert response.status_code == 200
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 9.8K bytes
    - Click Count (0)
Back to Top