// [CRUCIBLE-SEED]
// category: hardcoded_secret
// severity: critical
// language: java
// expected: Hardcoded Redis password and encryption key in configuration class

public class CacheConfig {
    public static final String REDIS_HOST       = "redis.internal.prod";
    public static final int    REDIS_PORT       = 6379;
    public static final String REDIS_PASSWORD   = "RedisP@$$w0rd#Prod";
    public static final String ENCRYPTION_KEY   = "AES256KeyForCacheEncryption9876!";
    public static final String ENCRYPTION_SALT  = "SaltVal!2024";

    public static String getRedisUri() {
        return String.format("redis://:%s@%s:%d", REDIS_PASSWORD, REDIS_HOST, REDIS_PORT);
    }

    public static byte[] getEncryptionKeyBytes() {
        return ENCRYPTION_KEY.getBytes();
    }
}
