- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getArcfour (1.04 sec)
-
src/test/java/jcifs/util/CryptoTest.java
// When Cipher encryptCipher = Crypto.getArcfour(key); encryptCipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "RC4")); byte[] encrypted = encryptCipher.doFinal(plaintext); Cipher decryptCipher = Crypto.getArcfour(key); decryptCipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(key, "RC4"));
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/Crypto.java
} /** * 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)