Implementing Cryptography Using Python® Shannon W

Total Page:16

File Type:pdf, Size:1020Kb

Implementing Cryptography Using Python® Shannon W Implementing Cryptography Using Python® Shannon W. Bray Published by John Wiley & Sons, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2020 by John Wiley & Sons, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-1-119-61220-9 ISBN: 978-1-119-61222-3 (ebk) ISBN: 978-1-119-61545-3 (ebk) Manufactured in the United States of America No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clear- ance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/ go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or war- ranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or website may provide or recommendations it may make. Further, readers should be aware that Internet websites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may down- load this material at http://booksupport.wiley.com. For more information about Wiley products, visit www.wiley.com. Library of Congress Control Number: 2020940306 Trademarks: Wiley and the Wiley logo are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permis- sion. Python is a registered trademark of Python Software Foundation. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book. To Stephanie, Eden, Hayden, and Kenna, with all my love, for making each and every day special. About the Author Shannon W. Bray started his career in information technology in 1997 after being honorably discharged from the United States Navy. He started his IT career working on programmable logic controllers out in the Gulf of Mexico and then started writing business applications using various technologies until 2000 when .NET was first released; since then, the languages of choice have been C++, C#, Windows PowerShell, and Python. From there, Shannon worked on writing software until he started working with Microsoft SharePoint. The Microsoft stack of technologies forced Shannon out of just writing code into building large secure solutions. Shannon’s career has taken him to engagements all over the world where he has worked with a number of U.S. government agencies. Shannon became interested in cryptography while pursuing a master’s degree in cybersecurity, and he has continued to research cryptography and cybersecurity as he pursues a PhD in computer science. Shannon has earned the following certifications: Microsoft Certified Master, Microsoft Certified Solutions Master, Certified Information Security Manager (CISM), Security+ (Plus), the CompTIA Advanced Security Practitioner (CASP+), and a number of other industry certifications. In addition to writing, Shannon speaks nationally at technology conventions and works as a mentor teaching technology to youth programs. Shannon lives in the Raleigh, North Carolina, area with his wife, Stephanie, two daughters, Eden and Kenna, and son, Hayden. During the dive season, Shannon enjoys diving off the coast of North Carolina. During the rest of the year, Shannon works on IT projects around the house that utilize single-board computers and, most often, propellers. He is currently building a home security system that uses Python, cryptography, and drones. As of the release of this v vi About the Author book, Shannon is currently running for the U.S. Senate for the state of North Carolina to help bring cybersecurity issues to the mainstream and to help people understand the importance of end-to-end encryption. Shannon can be contacted through LinkedIn at w w w.linkedin.com/in/ shannonbray. Acknowledgments While this is my third book, every book comes with its own set of challenges. Completing a book is not always a fun project but does become a labor of love. As soon as you start, life has a way of throwing changes at you, and it seems that you never have the time that you thought you would have. Shortly after starting this book, I started a PhD program with the Missouri University of Science and Technology and transitioned through a number of government contracts, ran for political office, and then became a work-from-home teacher as the world battled a global pandemic. I knew that the editing team would be earning their pay with whatever I put together. That team has been wonderful with their feedback and responsiveness. Specifically, I’d like to thank the follow- ing people on the Wiley team: Barath Kumar Rajasekaran, production editor; Jim Minatel, acquisitions editor; Pete Gaughan, content enablement manager; Brent Cook and James Langbridge, technical editors, and, most importantly, Kim Wimpsett, the project editor. Kim did her best to keep me on schedule, but I found new ways to miss a few deadlines. vii Contents at a Glance Introduction xvii Chapter 1 Introduction to Cryptography and Python 1 Chapter 2 Cryptographic Protocols and Perfect Secrecy 31 Chapter 3 Classical Cryptography 65 Chapter 4 Cryptographic Math and Frequency Analysis 95 Chapter 5 Stream Ciphers and Block Ciphers 139 Chapter 6 Using Cryptography with Images 171 Chapter 7 Message Integrity 199 Chapter 8 Cryptographic Applications and PKI 223 Chapter 9 Mastering Cryptography Using Python 247 Index 277 ix Contents Introduction xvii Chapter 1 Introduction to Cryptography and Python 1 Exploring Algorithms 2 Why Use Python? 2 Downloading and Installing Python 3 Installing on Ubuntu 4 Installing on macOS 4 Installing on Windows 4 Installing on a Chromebook 4 Installing Additional Packages 5 Installing Pip, NumPy, and Matplotlib 6 Installing the Cryptography Package 7 Installing Additional Packages 8 Testing Your Install 9 Diving into Python Basics 9 Using Variables 10 Using Strings 11 Introducing Operators 11 Understanding Arithmetic Operators 11 Understanding Comparison Operators 13 Understanding Logical Operators 13 Understanding Assignment Operators 14 Understanding Bitwise Operators 15 Understanding Membership Operators 15 Understanding Identity Operators 16 xi xii Contents Using Conditionals 16 Using Loops 17 for 17 while 18 continue 18 break 18 else 18 Using Files 19 Understanding Python Semantics 20 Sequence Types 20 Introducing Custom Functions 26 Downloading Files Using Python 27 Introducing Python Modules 28 Creating a Reverse Cipher 29 Summary 30 Chapter 2 Cryptographic Protocols and Perfect Secrecy 31 The Study of Cryptology 32 Understanding Cryptography 32 Cryptography’s Famous Family: Alice and Bob 33 Diffie-Hellman 34 Data Origin Authentication 34 Entity Authentication 35 Symmetric Algorithms 36 Asymmetric Algorithms 36 The Needham-Schroeder Protocols 36 The Otway-Rees Protocol 38 Kerberos 39 Multiple-Domain Kerberos 40 X.509 41 Formal Validation of Cryptographic Protocols 46 Configuring Your First Cryptographic Library 47 Understanding Cryptanalysis 47 Brute-Force Attacks 47 Side-Channel Attacks 48 Social Engineering 48 Analytical Attacks 48 Frequency Analysis 48 Attack Models 49 Shannon’s Theorem 50 One-Time Pad 51 XOR, AND, and OR 51 One-Time Pad Function 56 One-Way Hashes 58 Contents xiii Cryptographic One-Way Hashes 59 Message Authentication Codes 60 Perfect Forward Secrecy 60 Published and Proprietary Encryption Algorithms 61 Summary 62 References 62 Chapter 3 Classical Cryptography 65 Password Best Practices 66 Password Storage 66 Hashing Passwords 67 Salting Passwords 67 Stretching Passwords 68 Password Tools 68 Obfuscating Data 69 ASCII Encoding
Recommended publications
  • GPU-Based Password Cracking on the Security of Password Hashing Schemes Regarding Advances in Graphics Processing Units
    Radboud University Nijmegen Faculty of Science Kerckhoffs Institute Master of Science Thesis GPU-based Password Cracking On the Security of Password Hashing Schemes regarding Advances in Graphics Processing Units by Martijn Sprengers [email protected] Supervisors: Dr. L. Batina (Radboud University Nijmegen) Ir. S. Hegt (KPMG IT Advisory) Ir. P. Ceelen (KPMG IT Advisory) Thesis number: 646 Final Version Abstract Since users rely on passwords to authenticate themselves to computer systems, ad- versaries attempt to recover those passwords. To prevent such a recovery, various password hashing schemes can be used to store passwords securely. However, recent advances in the graphics processing unit (GPU) hardware challenge the way we have to look at secure password storage. GPU's have proven to be suitable for crypto- graphic operations and provide a significant speedup in performance compared to traditional central processing units (CPU's). This research focuses on the security requirements and properties of prevalent pass- word hashing schemes. Moreover, we present a proof of concept that launches an exhaustive search attack on the MD5-crypt password hashing scheme using modern GPU's. We show that it is possible to achieve a performance of 880 000 hashes per second, using different optimization techniques. Therefore our implementation, executed on a typical GPU, is more than 30 times faster than equally priced CPU hardware. With this performance increase, `complex' passwords with a length of 8 characters are now becoming feasible to crack. In addition, we show that between 50% and 80% of the passwords in a leaked database could be recovered within 2 months of computation time on one Nvidia GeForce 295 GTX.
    [Show full text]
  • Security + Encryption Standards
    Security + Encryption Standards Author: Joseph Lee Email: joseph@ ripplesoftware.ca Mobile: 778-725-3206 General Concepts Forward secrecy / perfect forward secrecy • Using a key exchange to provide a new key for each session provides improved forward secrecy because if keys are found out by an attacker, past data cannot be compromised with the keys Confusion • Cipher-text is significantly different than the original plaintext data • The property of confusion hides the relationship between the cipher-text and the key Diffusion • Is the principle that small changes in message plaintext results in large changes in the cipher-text • The idea of diffusion is to hide the relationship between the cipher-text and the plaintext Secret-algorithm • A proprietary algorithm that is not publicly disclosed • This is discouraged because it cannot be reviewed Weak / depreciated algorithms • An algorithm that can be easily "cracked" or defeated by an attacker High-resiliency • Refers to the strength of the encryption key if an attacker discovers part of the key Data-in-transit • Data sent over a network Data-at-rest • Data stored on a medium Data-in-use • Data being used by an application / computer system Out-of-band KEX • Using a medium / channel for key-exchange other than the medium the data transfer is taking place (phone, email, snail mail) In-band KEX • Using the same medium / channel for key-exchange that the data transfer is taking place Integrity • Ability to determine the message has not been altered • Hashing algorithms manage Authenticity
    [Show full text]
  • Implementation and Performance Analysis of PBKDF2, Bcrypt, Scrypt Algorithms
    Implementation and Performance Analysis of PBKDF2, Bcrypt, Scrypt Algorithms Levent Ertaul, Manpreet Kaur, Venkata Arun Kumar R Gudise CSU East Bay, Hayward, CA, USA. [email protected], [email protected], [email protected] Abstract- With the increase in mobile wireless or data lookup. Whereas, Cryptographic hash functions are technologies, security breaches are also increasing. It has used for building blocks for HMACs which provides become critical to safeguard our sensitive information message authentication. They ensure integrity of the data from the wrongdoers. So, having strong password is that is transmitted. Collision free hash function is the one pivotal. As almost every website needs you to login and which can never have same hashes of different output. If a create a password, it’s tempting to use same password and b are inputs such that H (a) =H (b), and a ≠ b. for numerous websites like banks, shopping and social User chosen passwords shall not be used directly as networking websites. This way we are making our cryptographic keys as they have low entropy and information easily accessible to hackers. Hence, we need randomness properties [2].Password is the secret value from a strong application for password security and which the cryptographic key can be generated. Figure 1 management. In this paper, we are going to compare the shows the statics of increasing cybercrime every year. Hence performance of 3 key derivation algorithms, namely, there is a need for strong key generation algorithms which PBKDF2 (Password Based Key Derivation Function), can generate the keys which are nearly impossible for the Bcrypt and Scrypt.
    [Show full text]
  • A New Approach in Expanding the Hash Size of MD5
    374 International Journal of Communication Networks and Information Security (IJCNIS) Vol. 10, No. 2, August 2018 A New Approach in Expanding the Hash Size of MD5 Esmael V. Maliberan, Ariel M. Sison, Ruji P. Medina Graduate Programs, Technological Institute of the Philippines, Quezon City, Philippines Abstract: The enhanced MD5 algorithm has been developed by variants and RIPEMD-160. These hash algorithms are used expanding its hash value up to 1280 bits from the original size of widely in cryptographic protocols and internet 128 bit using XOR and AND operators. Findings revealed that the communication in general. Among several hashing hash value of the modified algorithm was not cracked or hacked algorithms mentioned above, MD5 still surpasses the other during the experiment and testing using powerful bruteforce, since it is still widely used in the domain authentication dictionary, cracking tools and rainbow table such as security owing to its feature of irreversible [41]. This only CrackingStation, Hash Cracker, Cain and Abel and Rainbow Crack which are available online thus improved its security level means that the confirmation does not need to demand the compared to the original MD5. Furthermore, the proposed method original data but only need to have an effective digest to could output a hash value with 1280 bits with only 10.9 ms confirm the identity of the client. The MD5 message digest additional execution time from MD5. algorithm was developed by Ronald Rivest sometime in 1991 to change a previous hash function MD4, and it is commonly Keywords: MD5 algorithm, hashing, client-server used in securing data in various applications [27,23,22].
    [Show full text]
  • Computational Security and the Economics of Password Hacking
    COMPUTATIONAL SECURITY AND THE ECONOMICS OF PASSWORD HACKING Abstract Given the recent rise of cloud computing at cheap prices and the increase in cheap parallel computing options, brute force attacks against stolen password databases are a new option for attackers who may not have enough computing power on their own. We take a survey of the current availability and cost of cloud computing as it relates to the idea of computational security in the context of breaking password databases. Rather than look at just the increase in computing power available per computer, we look at how computing as a service is raising the barrier for password protections being computationally secure. We look at the set of key stretching functions meant to defeat brute force password attacks with the current cheapest cloud computing service in order to determine what amount of money and effort an attacker would need to compromise a password database. Michael Phox Zachary Sherin Adin Schmahmann Augusta Niles Context In password-based network security systems, there is a general architecture whereby the password is sent from the user device to a service server, which then hashes the password some number of times using a random oracle before storing the password in a database. Authentication is completed by following the same process and checking if the hashed password is correct. If the password is in the database, access permission is granted (See Figure 1). Figure 1 Password-based Security However, the security system above has been shown to have significant vulnerability depending on the method of password encryption. In contrast to informationally secure (intercepting a ciphertext does not yield any more information to change the probability of any plaintext message.
    [Show full text]
  • Authentication, Authorization and Transport Layer Security
    Universidade de Brasília Instituto de Ciências Exatas Departamento de Ciência da Computação Security of a NoSQL database: authentication, authorization and transport layer security Bruno Jorge S. Rodrigues Monograph presented as a partial requirement for the conclusion of the Course of Computer Engineering Supervisor Prof. Dr. Rodrigo Bonifácio de Almeida Brasília 2019 Universidade de Brasília Instituto de Ciências Exatas Departamento de Ciência da Computação Security of a NoSQL database: authentication, authorization and transport layer security Bruno Jorge S. Rodrigues Monograph presented as a partial requirement for the conclusion of the Course of Computer Engineering Prof. Dr. Rodrigo Bonifácio de Almeida (Supervisor) CIC/UnB Prof. Dr. Donald Knuth Dr. Leslie Lamport Stanford University Microsoft Research Prof. Dr. José Edil Coordinator of the Course of Computer Engineering Brasília, January 25, 2019 Dedication This work is dedicated to all the people who supported me until here. This is dedicated to God in the first place, for blessing me throughout this path that I have been crossing until here (1 Corinthians 10:31). This is dedicated to all my family, especially my father, Dimas, and my mother, Odilma, for loving me in first place, and for giving me strength, courage and the resources that I needed to get here without thinking twice. This is dedicated to Gabriella, for making me smile in my darkest moments, even when she was not in the best days as well. This is dedicated to all my friends, who made my days happier and also made this path easier to cross. I love you all, and you are very important to me! iii Acknowledgements First of all, I thank God for His mercies and blessings, for His care and for each door that was opened and also for every door that was closed.
    [Show full text]
  • Hybrid Password Authentication System
    IOSR Journal of Computer Engineering (IOSR-JCE) e-ISSN: 2278-0661,p-ISSN: 2278-8727, Volume 22, Issue 4, Ser. I (Jul. – Aug. 2020), PP 42-51 www.iosrjournals.org Hybrid Password Authentication System 1 2 3 Harish Manikandan Balaji , Abisek K.S , Dharmesh Gopinath 1,2,3(Computer Science and Engineering, Anna University, India) Abstract: The storage and handling of passwords is a vital part of security systems. We introduce a novel approach for password authentication to store and handle passwords securely, which could be seamlessly, merged with existing security systems. This approach protects the genuine plaintext password from being discovered by a malicious actor even if the database storing the passwords suffers a data breach. The data breach could be a result of an unpatched or zero-day vulnerability. A plaintext password is hashed using a hash function. The hash is then split into two parts. One part is used to create a series of patterns (or) Anti-passwords involving the use of an Anti-password algorithm, which are then stored securely in a database. The other part is encrypted using AES algorithm. The encryption and the patterns together create two layers of security making it harder to crack through and access the passwords. The analysis and complexity of the system shows that the encrypted passwords can resist lookup attacks and provide even stronger protection against dictionary attacks. It should also be mentioned that the system combines the cryptographic hash function, patterns, and encryption, without requiring anything more than just the password. Key Word: Advanced Encryption Standard (AES); Anti-password; Negative Database (NDB); Hybrid password authentication system (HPAS).
    [Show full text]
  • Cryptography Lecture 8 Digital Signatures, Hash Functions a Message Authentication Code Is What You Get from Symmetric Cryptography
    Cryptography Lecture 8 Digital signatures, hash functions A Message Authentication Code is what you get from symmetric cryptography A MAC is used to prevent Eve from creating a new message and inserting it instead of Alice’s message Key Key Alice Create MAC Verify MAC Bob Eve Signature vs MAC A MAC, Message Authentication Code, preserves data integrity, • i.e., it ensures that creation and any changes of the message have been made by authorised entities Only the authorised entities can check a MAC, and all who can • check can also change the data In most legally interesting cases, you want to be able to verify that • one single individual wrote something Also, in many situations it is good if everyone is able to check the • signature Digital signatures In asymmetric ciphers, one single individual holds the private key, • while everyone can get the public key So if you encrypt with the private key, and send both cryptogram • and message, anyone can check that “decryption” with the public key does indeed create the message Note that some public key systems do not allow “encryption” with • the private key Most systems can be modified to generate and verify signatures • A digital signature can be created using asymmetric cryptography Used to prevent Eve from creating messages and present them as written by of Alice Private Public signing verification key key Create Verify Alice Anyone signature signature Eve Digital signatures A digital signature should not only be tied to the signing user, but • also to the message The example of encrypting
    [Show full text]
  • Just in Time Hashing
    Just in Time Hashing Benjamin Harsha Jeremiah Blocki Purdue University Purdue University West Lafayette, Indiana West Lafayette, Indiana Email: [email protected] Email: [email protected] Abstract—In the past few years billions of user passwords prove and as many users continue to select low-entropy have been exposed to the threat of offline cracking attempts. passwords, finding it too difficult to memorize multiple Such brute-force cracking attempts are increasingly dangerous strong passwords for each of their accounts. Key stretching as password cracking hardware continues to improve and as serves as a last line of defense for users after a password users continue to select low entropy passwords. Key-stretching breach. The basic idea is to increase guessing costs for the techniques such as hash iteration and memory hard functions attacker by performing hash iteration (e.g., BCRYPT[75] can help to mitigate the risk, but increased key-stretching effort or PBKDF2 [59]) or by intentionally using a password necessarily increases authentication delay so this defense is hash function that is memory hard (e.g., SCRYPT [74, 74], fundamentally constrained by usability concerns. We intro- Argon2 [12]). duce Just in Time Hashing (JIT), a client side key-stretching Unfortunately, there is an inherent security/usability algorithm to protect user passwords against offline brute-force trade-off when adopting traditional key-stretching algo- cracking attempts without increasing delay for the user. The rithms such as PBKDF2, SCRYPT or Argon2. If the key- basic idea is to exploit idle time while the user is typing in stretching algorithm cannot be computed quickly then we their password to perform extra key-stretching.
    [Show full text]
  • Design and Analysis of Password-Based Key Derivation Functions
    Design and Analysis of Password-Based Key Derivation Functions Frances F. Yao1 and Yiqun Lisa Yin2 1 Department of Computer Science City University of Hong Kong Kowloon, Hong Kong Email: [email protected] 2 Department of Electrical Engineering Princeton University Princeton, NJ 08544 Email: [email protected] Abstract. A password-based key derivation function (KDF) – a func- tion that derives cryptographic keys from a password – is necessary in many security applications. Like any password-based schemes, such KDFs are subject to key search attacks (often called dictionary attacks). Salt and iteration count are used in practice to significantly increase the workload of such attacks. These techniques have also been specified in widely adopted industry standards such as PKCS and IETF. Despite the importance and wide-spread usage, there has been no formal security analysis on existing constructions. In this paper, we propose a general security framework for password-based KDFs and introduce two security definitions each capturing a different attacking scenario. We study the most commonly used construction H(c)(ps) and prove that the iteration count c, when fixed, does have an effect of stretching the password p by log2 c bits. We then analyze the two standardized KDFs in PKCS#5. We show that both are secure if the adversary cannot influence the pa- rameters but subject to attacks otherwise. Finally, we propose a new password-based KDF that is provably secure even when the adversary has full control of the parameters. 1 Introduction 1.1 Background and Motivation Cryptographic keys are essential in virtually all security application.
    [Show full text]
  • Protecting Passwords in the Event of a Password File Disclosure
    PolyPasswordHasher: Protecting Passwords In The Event Of A Password File Disclosure Justin Cappos Santiago Torres New York University New York University [email protected] [email protected] Abstract—Over the years, we have witnessed various the plain-text passwords from disk. Salting inserts a random password-hash database breaches that have affected small and value that complicates the use of tables that allow hackers to large companies, with a diversity of users and budgets. The indus- immediately look up passwords to match most hashes. Storing try standard, salted hashing (and even key stretching), has proven passwords with a salted hash is widely considered to be the to be insufficient protection against attackers who now have access best practice because of the level of protection offered and to clusters of GPU-powered password crackers. Although there the ease of implementation (e.g., salted hashing requires no are various proposals for better securing password storage, most do not offer the same adoption model (software-only, server-side) additional hardware or client software). as salted hashing, which may impede adoption. However, storing passwords with a salted hash is not a In this paper, we present PolyPasswordHasher, a software- panacea. That is, when stored password data has been com- only, server-side password storage mechanism that requires min- promised, attackers have proven themselves adept at quickly imal additional work for the server, but exponentially increases cracking large numbers of passwords, even when salted- the attacker’s effort. PolyPasswordHasher uses a threshold cryp- password hashes comprise the stored data. For example, Troy tosystem to interrelate stored password data so that passwords Hunt, a security researcher, showed that cracking 60% of a cannot be individually cracked.
    [Show full text]
  • Download The
    CRYPSTOR A Platform for Secure Storage by Alexandru Totolici B. Science, The University of British Columbia, 2010 A THESIS SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF Master of Science in THE FACULTY OF GRADUATE STUDIES (Computer Science) The University of British Columbia (Vancouver) June 2013 c Alexandru Totolici, 2013 Abstract Cloud computing continues to grow as a preferred development and de- ployment model, enabling new types of applications to be built while keep- ing resource requirements convenient for developers. Sacrifices have been made, however, in terms of the security and protection of data stored in these cloud applications, leaving users vulnerable to information leaks and invasions of privacy. We present CRYPSTOR, a storage platform design that addresses data security in the cloud computing context through the use of encryption, while maintaining the desirable properties of the current model, such as efficient storage and sharing. ii Preface I am the contributor of all the thesis work, under the supervision of my two supervisors, Bill Aiello and Andrew Warfield. iii Table of Contents Abstract . ii Preface . iii Table of Contents . iv List of Figures . vi Glossary . vii Acknowledgements . ix 1 Introduction . 1 2 Related Work . 4 3 Design and Architecture . 7 3.1 Threat Model . 7 3.2 Application Models . 9 3.2.1 By Infrastructure . 9 3.2.2 By Level of Centralization . 10 3.3 Design Goals . 12 4 Cryptographic Engineering . 13 4.1 Building Blocks . 13 4.2 Constructs . 14 iv 5 System . 17 5.1 Server . 17 5.2 Client . 18 5.2.1 Monitoring .
    [Show full text]