- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 109 for encrypto (0.47 sec)
-
src/main/java/org/codelibs/core/crypto/CachedCipher.java
/** * Encrypts the given data with the specified key. * * @param data * the data to encrypt * @param key * the key to use for encryption * @return the encrypted data */ public byte[] encrypt(final byte[] data, final Key key) { final Cipher cipher = pollEncryptoCipher(key); byte[] encrypted; try {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/crypto/CachedCipherTest.java
cipher.setKey("mySecretKey"); final byte[] original = "Hello World".getBytes(); final byte[] encrypted = cipher.encrypto(original); final byte[] decrypted = cipher.decrypto(encrypted); assertThat(encrypted, is(not(original))); assertArrayEquals(original, decrypted); } @Test @SuppressWarnings("deprecation")
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 5.3K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
import java.security.SecureRandom; import java.security.spec.KeySpec; import java.util.Arrays; import java.util.Base64; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.GCMParameterSpec; import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.SecretKeySpec; import javax.security.auth.DestroyFailedException; import javax.security.auth.Destroyable;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
import java.util.concurrent.atomic.AtomicLong; import javax.crypto.Cipher; import javax.crypto.spec.GCMParameterSpec; import javax.crypto.spec.SecretKeySpec; import org.bouncycastle.crypto.engines.AESEngine; import org.bouncycastle.crypto.modes.AEADBlockCipher; import org.bouncycastle.crypto.modes.CCMBlockCipher; import org.bouncycastle.crypto.params.AEADParameters; import org.bouncycastle.crypto.params.KeyParameter; import org.slf4j.Logger;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/main/java/jcifs/util/Crypto.java
import java.security.NoSuchAlgorithmException; import java.security.Provider; import javax.crypto.Cipher; import javax.crypto.NoSuchPaddingException; import javax.crypto.spec.SecretKeySpec; import org.bouncycastle.jce.provider.BouncyCastleProvider; import jcifs.CIFSUnsupportedCryptoException; /** * Cryptographic utility class providing encryption and decryption functionality for jCIFS.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
byte[] plaintext = "Hello, SMB3 Encryption!".getBytes(); long sessionId = 0x123456789ABCDEF0L; // When - Encrypt byte[] encrypted = context.encryptMessage(plaintext, sessionId); // Then - Verify encrypted message structure assertNotNull(encrypted, "Encrypted message should not be null");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java
* Parses the role set from a string. * @param value The string to parse. * @param encrypted Whether the string is encrypted. * @param roleSet The set of roles. */ protected void parseRoleSet(final String value, final boolean encrypted, final Set<String> roleSet) { String rolesStr = value; if (encrypted && cipher != null) { try { rolesStr = cipher.decryptoText(rolesStr);Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/DES.java
outInts[1] = leftt; } /// 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 22.7K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosEncData.java
import java.util.Enumeration; import java.util.List; import java.util.Map; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.IllegalBlockSizeException; import javax.crypto.Mac; import javax.crypto.NoSuchPaddingException; import javax.crypto.SecretKey; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import javax.security.auth.kerberos.KerberosKey;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java
/** * Gets the flags field which contains flags in SMB 3.1.1 or encryption algorithm ID in SMB 3.0/3.0.2 * * @return the flags (SMB 3.1.1) or encryption algorithm (SMB 3.0/3.0.2) */ public int getFlags() { return this.flags; } /** * Sets the flags field which contains flags in SMB 3.1.1 or encryption algorithm ID in SMB 3.0/3.0.2 * * @param flagsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.1K bytes - Viewed (0)