Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for Decrypt (0.04 sec)

  1. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

            byte[] result = cipher.doFinal(data);
    
            decrypt = new byte[result.length];
            System.arraycopy(result, 0, decrypt, 0, result.length);
    
            int tempSize = decrypt.length - 24;
    
            byte[] output = new byte[tempSize];
            System.arraycopy(decrypt, 24, output, 0, tempSize);
    
            return output;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCookieResourceProviderTest.java

            InvertibleCryptographer cookieCipher = new InvertibleCryptographer("AES", "1234567890123456", null) {
                @Override
                public String encrypt(String plainText) {
                    return "encrypted:" + plainText;
                }
    
                @Override
                public String decrypt(String cryptedText) {
                    return cryptedText.startsWith("encrypted:") ? cryptedText.substring("encrypted:".length()) : cryptedText;
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

            byte[] decrypted = KerberosEncData.decrypt(data, key, KerberosConstants.DES_ENC_TYPE);
            assertNotNull(decrypted);
            // With dummy data, we can't verify the content, just that it decrypts without error
            // and returns a result of the expected size.
            assertEquals(data.length - 24, decrypted.length);
        }
    
        /**
         * Test decrypt with an unsupported encryption type.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            byte[] salt = storage.getSalt();
    
            // Encrypt with first storage
            byte[] encrypted = storage.encryptCredentials(plaintext);
    
            // Create new storage with same salt
            SecureCredentialStorage storage2 = new SecureCredentialStorage(masterPassword.clone(), salt);
    
            try {
                // Should be able to decrypt with same salt and password
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/DES.java

        }
    
        /// Encrypt a block of bytes.
        /**
         * Encrypts an 8-byte block using DES
         * @param clearText the 8-byte plaintext block
         * @param cipherText the output 8-byte ciphertext block
         */
        public void encrypt(final byte[] clearText, final byte[] cipherText) {
            encrypt(clearText, 0, cipherText, 0);
        }
    
        /// Decrypt a block of bytes.
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessSecurityResourceProviderTest.java

            assertNotNull(cryptographer);
    
            String plainText = "Hello, World!";
            String encrypted = cryptographer.encrypt(plainText);
            assertNotNull(encrypted);
            assertFalse(plainText.equals(encrypted));
    
            String decrypted = cryptographer.decrypt(encrypted);
            assertEquals(plainText, decrypted);
        }
    
        public void test_invertibleCryptography_withEmptyString() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/crypto/CachedCipher.java

                throw new UnsupportedEncodingRuntimeException(e);
            }
        }
    
        /**
         * Decrypts the given data.
         *
         * @param data
         *            the data to decrypt
         * @return the decrypted data
         */
        public byte[] decrypto(final byte[] data) {
            final Cipher cipher = pollDecryptoCipher();
            byte[] decrypted;
            try {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. cmd/encryption-v1.go

    	if err != nil {
    		return encryptedETag
    	}
    	return hex.EncodeToString(etagBytes)
    }
    
    // GetDecryptedRange - To decrypt the range (off, length) of the
    // decrypted object stream, we need to read the range (encOff,
    // encLength) of the encrypted object stream to decrypt it, and
    // compute skipLen, the number of bytes to skip in the beginning of
    // the encrypted range.
    //
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java

                byte[] decryptedData = createDecryptedDataBytes(USER_PRINCIPAL_NAME, USER_REALM);
                mockedEncData.when(() -> KerberosEncData.decrypt(ENCRYPTED_DATA, kerberosKey, ENCRYPTION_TYPE)).thenReturn(decryptedData);
                when(kerberosKey.getKeyType()).thenReturn(ENCRYPTION_TYPE);
    
                KerberosTicket ticket = new KerberosTicket(validToken, (byte) 0, keys);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                    "Should throw IllegalArgumentException for null message");
        }
    
        @Test
        @DisplayName("Should successfully encrypt and decrypt with refactored methods")
        void testRefactoredEncryptionDecryption() throws Exception {
            // Given - Use same key for both encryption and decryption in test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
Back to top