\section{Results Obtained}
This chapter presents a comprehensive evaluation of the developed encrypted cloud storage system integrated with Symmetric Searchable Encryption (SSE). The evaluation encompasses performance benchmarks, security analyses, functional validations, usability assessments, error handling effectiveness, compatibility testing, and an open discussion of limitations along with future avenues for improvement.
\subsection{Performance Evaluation}
Evaluating the system’s performance is critical in understanding its practical feasibility, especially given the computational overhead inherent in cryptographic operations and secure searchable indexing.
\subsubsection{Search Performance}
A primary performance metric for any searchable encryption system is the \textit{query response time}, which directly impacts user experience. We conducted extensive performance tests by executing keyword search queries on indices constructed over datasets of varying sizes and compositions.
\begin{itemize}
\item \textbf{Test Setup:}
The experiments were executed on a mid-range server equipped with an Intel Xeon processor and 16GB RAM. Datasets ranged from 100 to 10,000 documents containing diverse English textual content.
\item \textbf{Query Workload:}
Common keywords, randomly selected and including frequently occurring terms as well as rare words, were submitted as search input.
\item \textbf{Observations:}
- The query response time remained consistently low (under 200 milliseconds for datasets up to 10,000 documents), indicating efficient keyword hashing and lookup in the in-memory index.
- Lookup operations primarily involved dictionary accesses with constant time complexity, explaining the rapid search even as dataset size increased.
- Document decryption times exhibited linear growth proportional to the number of matching documents; however, due to efficient AES and Fernet implementations, decryption remained swift.
\item \textbf{Scalability Analysis:}
- As dataset volume increased tenfold, overall search latency increased near-linearly, reflecting the increased number of potential keyword-document associations but stable single-document processing times.
- Memory profiling revealed that the in-memory index scales in proportion to unique keywords and document count, highlighting future needs for persistent or distributed indices for very large datasets.
\end{itemize}
These results demonstrate that, for typical enterprise or medium-sized deployments, the implemented system delivers timely and responsive encrypted search capabilities.
\subsubsection{Storage Overhead}
The encrypted storage size and memory overhead of the SSE index are crucial factors influencing system acceptability:
\begin{itemize}
\item \textbf{Encrypted File Size:}
- Files encrypted with AES-CBC exhibited a size increase averaging 10-20% relative to the original plaintext size due to block padding, IV inclusion, and base64 encoding overheads.
- This overhead is generally acceptable given the security benefits and is comparable to industry expectations for secure encryption.
\item \textbf{Index Memory Footprint:}
- The SSE index held hashed keywords as keys and sets of document identifiers as values. For the tested datasets, the index memory usage grew linearly with unique keyword counts.
- For 10,000 documents with an average of 300 unique keywords per document, the system maintained the index within tens of megabytes of RAM, reflecting manageable overhead.
- Memory consumption could become prohibitive with extremely large or multilingual corpora unless optimized with compact data structures or external storage.
\item \textbf{Computational Overhead:}
- Cryptographic operations, benchmarked via profiling tools, indicated AES-CBC encryption/decryption processes consuming approximately 50-100 ms per megabyte of file data on commodity hardware.
- Fernet encryption within SSE was similarly efficient, benefiting from hardware AES acceleration where available.
\end{itemize}
Overall, storage overheads and computational costs are within practical limits that balance security, privacy, and operational efficiency.
\subsection{Security Analysis}
The system’s robustness against common and sophisticated attacks is assessed to validate the confidentiality and privacy guarantees.
\subsubsection{Attack Resistance}
Key aspects of the system were tested or analyzed for resilience against attacks typically targeting searchable encryption:
\begin{itemize}
\item \textbf{Keyword Guessing Attacks:}
Keywords are hashed with SHA-256 before entering the encrypted index, making it infeasible for adversaries to determine original keywords using dictionary or brute-force attacks without considerable computational effort or side-channel information.
\item \textbf{Search and Access Pattern Leakage:}
While the SSE scheme leaks which encrypted documents correspond to search queries, randomized token generation and the use of authenticated encryption within the SSE cipher reduce the risk that attackers can trivially link queries across sessions.
The system was stress-tested with repeated identical keyword searches; limiting exposure from frequency analysis remains an avenue for future work incorporating padding and obfuscation.
\item \textbf{Statistical and Inference Attacks:}
Uniform-length tokens and encrypted ciphertexts hamper attackers’ ability to extract metadata from ciphertext sizes or structures. The consistent use of cryptographic primitives reduces exposure to such side-channel vectors.
\end{itemize}
The selected combination of cryptographic hash functions and authenticated symmetric encryption significantly mitigates common threat vectors.
\subsubsection{Privacy Preservation}
The system ensures end-to-end confidentiality:
\begin{itemize}
\item \textbf{Encrypted Storage:} Only ciphertext is stored on disk or transmitted, preventing cloud servers or intermediaries from accessing plaintext.
\item \textbf{Secure Keyword Indexing:} Hashing keywords ensures that search terms themselves are never disclosed in plaintext to any untrusted party.
\item \textbf{Role-Based Access Control:} User differentiation ensures only authorized users perform sensitive operations, preventing unauthorized information leakage.
\item \textbf{Session and Credentials Security:} Password hashes, session management, and HTTPS ensure authentication data and user interactions remain confidential.
\end{itemize}
These layers provide a comprehensive privacy protection pipeline from storage to retrieval.
\subsection{Functionality Verification}
Rigorous testing confirmed that core application functionalities operate as designed:
\subsubsection{Complex Query Support}
\begin{itemize}
\item Multi-keyword queries return all documents containing any queried keywords, supporting broader search semantics akin to OR queries in conventional databases.
\item While current support is limited to flat keyword matching, plans exist to extend this to boolean (AND, NOT), phrase, and range queries in later iterations, which would markedly increase expressiveness.
\end{itemize}
\subsubsection{Multi-User Operation}
\begin{itemize}
\item Concurrent testing with multiple authenticated users verified session isolation, ensuring no cross-contamination or unauthorized access.
\item Different roles were tested for access restrictions; admins successfully performed encryption and file upload, while normal users operated within authorized search and decryption scopes.
\item This confirms robust session and role-based management implementations.
\end{itemize}
\subsubsection{Dynamic Update Capability}
\begin{itemize}
\item The system supports runtime insertion of new encrypted documents and immediate update of searchable indices without downtime.
\item Index updates integrate new hashed keywords and link documents efficiently, supporting data growth and operational continuity in dynamic environments.
\end{itemize}
\subsection{Usability and User Experience}
User interface quality was assessed via informal user testing:
\begin{itemize}
\item Workflow for file upload, encryption, keyword search, and decryption was found intuitive and smooth.
\item Role-dependent interface modifications simplified user interactions by hiding irrelevant features, reducing confusion and errors.
\item Responsive design elements (e.g., real-time notifications, progress bars) enhanced user confidence.
\item Feedback from test participants endorsed the system’s encrypted search as a productivity booster, reducing the need to decrypt unnecessary files.
\end{itemize}
\subsection{Error Handling and Reliability}
Redundancy in error management ensures system robustness:
\begin{itemize}
\item Invalid file uploads trigger clear error messages specifying acceptable formats and encoding requirements.
\item Decryption errors (e.g., wrong key or corrupted files) are gracefully caught and reported without crashing the application.
\item Invalid search queries return empty results elegantly.
\item All errors and security-relevant events are logged with timestamps, facilitating audit and troubleshooting without exposing sensitive data in logs
\end{itemize}
\subsection{Compatibility and Portability}
The system was validated across diverse platforms:
\begin{itemize}
\item Runs consistently on Linux (Ubuntu, CentOS), Windows 10, and macOS Catalina.
\item Key dependencies (\texttt{PyCryptodome}, \texttt{Flask}, \texttt{SQLAlchemy}) are cross-platform and support installation via \texttt{pip} in virtual environments, promoting smooth setup.
\item Modular design supports local development servers and evolving deployment to containerized or cloud-based environments.
\item Portability ensures broad accessibility and supports scaling to production-grade deployments.
\end{itemize}
\subsection{Limitations and Future Opportunities}
Despite the system’s strengths, several limitations were identified:
\begin{itemize}
\item \textbf{Leakage in SSE:}
The current scheme leaks search and access patterns inherent to symmetric SSE, necessitating future integration of leakage-resilient SSE schemes or techniques such as Oblivious RAM for stronger privacy.
\item \textbf{In-Memory Index Constraints:}
Storing the keyword index in-memory bounds scalability; persistent encrypted database-backed indices or distributed caching mechanisms will be needed for enterprise scale.
\item \textbf{Query Expressiveness:}
Support for advanced query types (boolean logic, phrase search, ranked results) is missing, limiting flexibility compared to traditional search systems.
\item \textbf{Centralized Key Management:}
The AES and SSE keys are centrally managed; extending to per-user or hierarchical key management would improve security in multi-tenant scenarios.
\item \textbf{Performance Under Heavy Load:}
While suitable for medium deployments, extensive stress testing on concurrency and large datasets is pending for readiness in high-demand environments.
\end{itemize}
These constraints define clear future development directions.
\subsection{Summary}
The evaluations confirm that the implemented system successfully balances the fundamental trade-offs between security, efficiency, and usability inherent in encrypted searchable cloud storage. The prototype provides a secure, practical platform supporting real-time encrypted search, robust access control, and flexible user interactions, thereby laying a solid groundwork for future enhancement toward scalable, leakage-resilient, and feature-rich systems.
\subsection{Performance Evaluation}
\subsubsection{Search Performance}
\begin{figure}[h!]
\centering
\includegraphics[width=0.7\textwidth]{assets/search_response_times.png}
\caption{Average Query Response Time vs. Number of Documents}
\label{fig:search-response}
\end{figure}
\paragraph{Description:}
Figure \ref{fig:search-response} depicts the average time (in milliseconds) required to execute keyword search queries against encrypted indices holding varying numbers of documents (from 100 up to 10,000). The near-linear trend illustrates how query time scales gracefully with the dataset size, validating the efficiency of the hashed keyword indexing and optimized lookup procedures. Real-time search capability is preserved even at large dataset scales, with query times remaining well under 200 ms for typical workloads.
\begin{table}[h!]
\centering
\begin{tabular}{|r|r|r|}
\hline
\textbf{Data Size} & \textbf{Time (ms)} & \textbf{Memory (KB)} \
\hline
100 & 15 & 5 \
1{,}000 & 37 & 15 \
5{,}000 & 98 & 60 \
10{,}000 & 185 & 110 \
\hline
\end{tabular}
\caption{Search Performance and Memory Consumption Across Datasets}
\label{tab:search-perf}
\end{table}
\subsubsection{Storage Overhead}
\begin{figure}[h!]
\centering
\includegraphics[width=0.7\textwidth]{assets/storage_overhead.png}
\caption{Storage Size Overhead: Plaintext vs. Encrypted Files}
\label{fig:storage_overhead}
\end{figure}
\paragraph{Description:}
Figure \ref{fig:storage-overhead} compares the size of plaintext files against their encrypted counterparts. The increase in file size averages 15% due to padding, IV inclusion, and base64 encoding. This overhead is consistent across various file sizes and remains within acceptable bounds given the security benefits.
\begin{table}[h!]
\centering
\begin{tabular}{|r|r|r|}
\hline
\textbf{Value 1} & \textbf{Value 2} & \textbf{Value 3} \
\hline
50 & 50 & 58 \
200 & 200 & 230 \
500 & 500 & 575 \
1,000 & 1,000 & 1,145 \
\hline
\end{tabular}
\caption{File Size Comparison before and after Encryption}
\label{tab:file-size}
\end{table}
\subsection{Security Analysis}
\subsubsection{Attack Resistance}
\begin{figure}[h!]
\centering
\includegraphics[width=0.7\textwidth]{assets/attack_resistance.png}
\caption{Simulated Attack Success Rate vs. Number of Keyword Guesses}
\label{fig:attack-resistance}
\end{figure}
\paragraph{Description:}
Figure \ref{fig:attack-resistance} presents the success rate of keyword guessing attacks versus the number of guesses an adversary attempts. Thanks to SHA-256 hashing of keywords and the SSE design, the success rate remains negligible even after a large number of attempts, underscoring strong resistance to dictionary and brute-force attacks.
\subsubsection{Privacy Preservation}
\begin{table}[h!]
\centering
\begin{tabular}{|l|l|}
\hline
\textbf{Aspect} & \textbf{Details} \
\hline
\textbf{Keyword Hashing} & Implemented: Yes \
& Future: -- \
\hline
\textbf{Authenticated Encryption} & Implemented: Yes \
& Future: -- \
\hline
\textbf{Access Pattern Hiding} & Implemented: Partial \
& Future: Leakage-resilient SSE / ORAM \
\hline
\textbf{Search Pattern Obfuscation} & Implemented: Minimal \
& Future: Token Randomization \
\hline
\textbf{Role-Based Access Control} & Implemented: Yes \
& Future: Fine-grained Attribute-Based Encryption \
\hline
\textbf{Secure Session Management} & Implemented: Yes \
& Future: Multi-factor Authentication \
\hline
\end{tabular}
\caption{Vertical View: Privacy Preservation Measures and Enhancements}
\label{tab:vertical_privacy}
\end{table}
\subsection{Functionality Verification}
\subsubsection{Multi-Keyword and Query Capabilities}
\begin{figure}[h!]
\centering
\includegraphics[width=0.7\textwidth]{assets/query_capabilities.png}
\caption{Supported Query Types and System Response Times}
\label{fig:query-capabilities}
\end{figure}
\paragraph{Description:}
Figure \ref{fig:query-capabilities} lists the types of keyword queries supported and their respective response times. Currently, single and multi-keyword OR queries are performant, enabling users to retrieve documents containing any of the search keywords with minimal latency. The graph highlights planned support for more complex queries like boolean AND/NOT, phrase queries, and ranked relevance in future iterations.
\subsubsection{Concurrent Multi-User Testing}
\begin{table}[h!]
\centering
\begin{tabular}{|l|c|c|c|c|}
\hline
\textbf{Metric} & \textbf{1 User} & \textbf{10 Users} & \textbf{50 Users} & \textbf{100 Users} \
\hline
Avg. Response Time (ms) & 85 & 130 & 320 & 620 \
\hline
Max CPU Usage (%) & 15 & 40 & 75 & 95 \
\hline
Memory Usage (MB) & 120 & 400 & 800 & 1100 \
\hline
\end{tabular}
\caption{Vertical View of System Performance Metrics by User Load}
\label{tab:vertical-concurrent-users}
\end{table}
\subsection{Usability and User Experience}
\begin{figure}[h!]
\centering
\includegraphics[width=0.75\textwidth]{assets/usability_survey_results.png}
\caption{User Feedback on System Usability and Functionality}
\label{fig:usability-feedback}
\end{figure}
\paragraph{Description:}
Figure \ref{fig:usability-feedback} summarizes survey results from beta users rating the system’s ease of use, feature set, interface clarity, and satisfaction with encrypted search. Feedback indicates high user confidence, low learning curve, and satisfaction with secure keyword search enabling productive document retrieval without decrypting unnecessary files.
\subsection{Error Handling and Reliability}
\begin{table}[h!]
\centering
\begin{tabular}{|l|l|}
\hline
\textbf{Error Scenario} & \textbf{Handling Outcome} \
\hline
Invalid File Upload Format & Graceful error message + rejection \
\hline
Corrupted File Decryption & User notification, logging, no crash \
\hline
Unauthorized Access Attempt & Access denied, log event recorded \
\hline
Session Timeout & User logged out securely \
\hline
Search Query No Results & Informative 'No matches found' message \
\hline
\end{tabular}
\caption{Vertical View of Error Scenarios and Responses}
\label{tab:vertical-error-handling}
\end{table}
\subsection{Compatibility and Portability}
The system was tested for portability by deployment and operation on:
\begin{itemize}
\item \textbf{Operating Systems:} Ubuntu 20.04 LTS, Windows 10, macOS Big Sur.
\item \textbf{Python Environments:} Virtual environments with Python 3.8 and 3.9, confirming dependency compatibility.
\item \textbf{Web Browsers:} Chrome, Firefox, Edge, testing HTML/CSS responsiveness and JavaScript behavior.
\end{itemize}
Containerized deployment with Docker further enhances portability, enabling straightforward migration and scaling across diverse cloud environments.
\subsection{Limitations and Future Opportunities}
\begin{figure}[h!]
\centering
\includegraphics[width=0.65\textwidth]{assets/limitations_future_work.png}
\caption{Overview of System Limitations and Planned Future Enhancements}
\label{fig:limitations}
\end{figure}
\paragraph{Description:}
Figure \ref{fig:limitations} visualizes the system’s current limitations — such as leakage in SSE, in-memory indexing, and limited query expressiveness — alongside planned work like leakage-resilient SSE development, persistent encrypted indices, enhanced key management schemes, and support for complex queries.
Add 5 more subsection and elaborate them vastly. The subsection already present are dont change them give me additional 5