- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 38 for SecureRandom (0.08 seconds)
-
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
*/ public class PreauthIntegrityServiceTest { private PreauthIntegrityService preauthService; private SecureRandom secureRandom; @BeforeEach public void setUp() { secureRandom = new SecureRandom(); preauthService = new PreauthIntegrityService(secureRandom, PreauthIntegrityService.HASH_ALGO_SHA512, true); } @AfterEach public void tearDown() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.1K bytes - Click Count (0) -
samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java
* Clients may request multiple sessions. */ public final class OAuthSessionFactory extends Dispatcher implements Closeable { private final SecureRandom secureRandom = new SecureRandom(); private final SlackApi slackApi; private MockWebServer mockWebServer; /** Guarded by this. */ private final Map<ByteString, Listener> listeners = new LinkedHashMap<>();Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Aug 12 07:26:27 GMT 2021 - 3.8K bytes - Click Count (1) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
byte[] shortFileId = new byte[8]; byte[] standardFileId = new byte[16]; byte[] longFileId = new byte[32]; new SecureRandom().nextBytes(shortFileId); new SecureRandom().nextBytes(standardFileId); new SecureRandom().nextBytes(longFileId); RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/net/UuidUtil.java
} private static final byte[] DEFAULT_ADDRESS = new byte[] { (byte) 127, (byte) 0, (byte) 0, (byte) 1 }; private static final SecureRandom RANDOM = new SecureRandom(); private static final String BASE = StringUtil.toHex(getAddress()) + StringUtil.toHex(System.identityHashCode(RANDOM)); /** * Creates a UUID. * * @return the UUID string */ public static String create() {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 1.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
*/ public PreauthIntegrityService(SecureRandom secureRandom, int hashAlgorithm, boolean enforceIntegrity) { this.secureRandom = secureRandom != null ? secureRandom : new SecureRandom(); this.selectedHashAlgorithm = hashAlgorithm; this.enforceIntegrity = enforceIntegrity; } /** * Generates a new preauth salt for SMB 3.1.1 negotiation. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 12.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
void setUp() { // Initialize test keys sessionKey = new byte[16]; // 128-bit session key preauthIntegrity = new byte[64]; // Preauth integrity hash new SecureRandom().nextBytes(sessionKey); new SecureRandom().nextBytes(preauthIntegrity); } @Test @DisplayName("Should derive signing key for SMB 3.0.0 dialect") void testDeriveSigningKey_SMB300() { // Given
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
@BeforeEach void setUp() { // Initialize test keys testEncryptionKey = new byte[16]; // 128-bit key testDecryptionKey = new byte[16]; // 128-bit key new SecureRandom().nextBytes(testEncryptionKey); new SecureRandom().nextBytes(testDecryptionKey); // Create encryption context with required parametersCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 44.1K bytes - Click Count (0) -
src/test/java/jcifs/util/CryptoTest.java
// Given int length = 16; // When byte[] random1 = new byte[length]; byte[] random2 = new byte[length]; SecureRandom.getInstanceStrong().nextBytes(random1); SecureRandom.getInstanceStrong().nextBytes(random2); // Then assertNotNull(random1); assertNotNull(random2); assertEquals(length, random1.length);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.4K bytes - Click Count (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
private static final int GCM_IV_SIZE = 12; private static final int SALT_SIZE = 32; private static final int PBKDF2_ITERATIONS = 100_000; private final SecureRandom secureRandom = new SecureRandom(); private volatile SecretKey masterKey; private volatile byte[] salt; private volatile boolean destroyed = false; /** * Initialize secure credential storage with a master passwordCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
String sessionId1 = "session-1"; String sessionId2 = "session-2"; byte[] key1 = new byte[16]; byte[] key2 = new byte[16]; new SecureRandom().nextBytes(key1); new SecureRandom().nextBytes(key2); keyManager.storeSessionKey(sessionId1, key1, "AES"); keyManager.storeSessionKey(sessionId2, key2, "AES");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.2K bytes - Click Count (0)