- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,564 for cipher (0.03 sec)
-
src/main/java/jcifs/util/Crypto.java
return new HMACT64(key); } /** * Get an RC4 cipher instance initialized with the specified key. * @param key the encryption key * @return RC4 cipher in encryption mode */ public static Cipher getArcfour(final byte[] key) { try { final Cipher c = Cipher.getInstance("RC4"); c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "RC4")); return c;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
final Cipher cipher = Cipher.getInstance(transformation); final GCMParameterSpec gcmSpec = new GCMParameterSpec(getAuthTagLength() * 8, nonce); cipher.init(encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, keySpec, gcmSpec); return cipher; } finally { // Guaranteed cleanup of all key material if (key != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacMac.java
byte[] keybytes = key.getEncoded(); Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding"); cipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(keybytes, "AES"), new IvParameterSpec(ZERO_IV, 0, ZERO_IV.length)); if (constant.length != cipher.getBlockSize()) { constant = expandNFold(constant, cipher.getBlockSize()); } byte[] enc = constant;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
@DisplayName("Should encode various cipher counts correctly") void testEncodeVariousCipherCounts(int cipherCount) { int[] ciphers = new int[cipherCount]; for (int i = 0; i < cipherCount; i++) { ciphers[i] = i + 1; } EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, ciphers);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/util/CryptoTest.java
IvParameterSpec ivSpec = new IvParameterSpec(iv); Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec); byte[] encrypted = cipher.doFinal(plaintext); cipher.init(Cipher.DECRYPT_MODE, keySpec, ivSpec); byte[] decrypted = cipher.doFinal(encrypted); // Then assertNotNull(encrypted);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
secureRandom.nextBytes(iv); // Setup cipher Cipher cipher = Cipher.getInstance(ENCRYPTION_ALGORITHM); GCMParameterSpec gcmSpec = new GCMParameterSpec(GCM_TAG_SIZE, iv); cipher.init(Cipher.ENCRYPT_MODE, masterKey, gcmSpec); // Encrypt byte[] ciphertext = cipher.doFinal(plaintextBytes); // Combine IV and ciphertext
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosEncData.java
SecretKeySpec dataKey = new SecretKeySpec(dataHmac, KerberosConstants.RC4_ALGORITHM); cipher = Cipher.getInstance(KerberosConstants.RC4_ALGORITHM); cipher.init(Cipher.DECRYPT_MODE, dataKey); int plainDataLength = data.length - KerberosConstants.CHECKSUM_SIZE; byte[] plainData = cipher.doFinal(data, KerberosConstants.CHECKSUM_SIZE, plainDataLength);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/RC4.java
*/ package jcifs.smb1.util; /** * Implementation of the RC4 (ARCFOUR) stream cipher algorithm. * This class provides RC4 encryption/decryption functionality used in SMB1 protocol operations. */ public class RC4 { byte[] s; int i, j; /** * Default constructor for RC4 cipher. * Call init() to initialize with a key before use. */ public RC4() { } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCookieResourceProviderTest.java
}); assertEquals(path, provider.provideDefaultPath()); } } // Test cipher with special characters public void test_cipherWithSpecialCharacters() { // Create a mock cipher for testing purposes InvertibleCryptographer cipher = new InvertibleCryptographer("AES", "1234567890123456", null) { @Override public String encrypt(String plainText) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.9K bytes - Viewed (0)