From 4fa6e8c6983f4ff550fd707cfc63f61aaa741723 Mon Sep 17 00:00:00 2001 From: Bill Buchanan Date: Wed, 25 Jan 2023 20:50:31 +0000 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7655175..719ad8d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The following is the draft timetable: |----|--------------|----------------------------------------------------|--------------------------------| | 2 | 27 Jan 2023 | Ciphers and Fundamentals [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit01_cipher_fundamentals)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit01_cipher_fundamentals/lab)] [[Demo](https://www.youtube.com/watch?v=v6H7lHblKes)] | | 3 | 3 Feb 2023 | Symmetric Key [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit02_symmetric)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit02_symmetric/lab)] | -| 4 | 10 Feb 2023 | Hashing and MAC [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit03_hashing)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit03_hashing/lab)] | +| 4 | 10 Feb 2023 | Hashing and MAC [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit03_hashing)] | [[Lab] Jean-Philippe Aumasson(https://github.com/billbuchanan/appliedcrypto/tree/main/unit03_hashing/lab)] | | 5 | 17 Feb 2023 | Asymmetric (Public) Key [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit04_public_key)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit04_public_key/lab)] | | 6 | 24 Feb 2023 | Key Exchange [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit05_key_exchange)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit05_key_exchange/lab)] | | 7 | 3 Mar 2022 | Digital Signatures and Certificates [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit06_trust_dig_cert)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit06_trust_dig_cert/lab)] | From f2205c59f5fa921983e3237f1e3e3c08e456d323 Mon Sep 17 00:00:00 2001 From: Bill Buchanan Date: Wed, 25 Jan 2023 20:51:27 +0000 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 719ad8d..8b964f1 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The following is the draft timetable: |----|--------------|----------------------------------------------------|--------------------------------| | 2 | 27 Jan 2023 | Ciphers and Fundamentals [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit01_cipher_fundamentals)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit01_cipher_fundamentals/lab)] [[Demo](https://www.youtube.com/watch?v=v6H7lHblKes)] | | 3 | 3 Feb 2023 | Symmetric Key [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit02_symmetric)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit02_symmetric/lab)] | -| 4 | 10 Feb 2023 | Hashing and MAC [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit03_hashing)] | [[Lab] Jean-Philippe Aumasson(https://github.com/billbuchanan/appliedcrypto/tree/main/unit03_hashing/lab)] | +| 4 | 10 Feb 2023 | Hashing and MAC [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit03_hashing)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit03_hashing/lab)] Jean-Philippe Aumasson | | 5 | 17 Feb 2023 | Asymmetric (Public) Key [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit04_public_key)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit04_public_key/lab)] | | 6 | 24 Feb 2023 | Key Exchange [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit05_key_exchange)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit05_key_exchange/lab)] | | 7 | 3 Mar 2022 | Digital Signatures and Certificates [[Unit](https://github.com/billbuchanan/appliedcrypto/tree/main/unit06_trust_dig_cert)] | [[Lab](https://github.com/billbuchanan/appliedcrypto/tree/main/unit06_trust_dig_cert/lab)] | From 1cfdacde1eb184fbcb385a7d4131553b0d62b984 Mon Sep 17 00:00:00 2001 From: Bill Buchanan Date: Thu, 26 Jan 2023 20:21:41 +0000 Subject: [PATCH 3/4] Update README.md --- unit01_cipher_fundamentals/lab/README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/unit01_cipher_fundamentals/lab/README.md b/unit01_cipher_fundamentals/lab/README.md index dac52f2..6d01760 100644 --- a/unit01_cipher_fundamentals/lab/README.md +++ b/unit01_cipher_fundamentals/lab/README.md @@ -227,16 +227,22 @@ Now prove the following: An outline of the Python 2.7 code is: ```python -message = raw_input('Enter message: ') -e = raw_input('Enter exponent: ') -p = raw_input('Enter prime ') +message = input('Enter message value: ') +e = input('Enter exponent: ') +p = input('Enter prime ') cipher = (int(message) ** int(e)) % int(p) -print (cipher) +print (f"Result is: {cipher}") ``` Note: In Python 3.x, we using input() instead of raw_input(). +# Setting up AWS +You should have an account for AWS. Access your AWS Lab, and + + + +# Additional Lab ## D Simple prime number test A prime number is a value which only has factors of 1 and itself. Prime numbers are used fairly extensively in cryptography, as computers struggle to factorize them when they are multiplied together. The simplest test for a prime number is to divide the value from all the integers from 2 to the value divided by 2. If any of the results leaves no remainder, the value is a prime, otherwise it is composite. We can obviously improve on this by getting rid of even numbers which are greater than 2, and also that the highest value to be tested is the square root of the value. From ad2296b53bf089973e65d40fbe14631343adebee Mon Sep 17 00:00:00 2001 From: Bill Buchanan Date: Thu, 26 Jan 2023 20:42:55 +0000 Subject: [PATCH 4/4] Update README.md --- unit01_cipher_fundamentals/lab/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit01_cipher_fundamentals/lab/README.md b/unit01_cipher_fundamentals/lab/README.md index 6d01760..5749e31 100644 --- a/unit01_cipher_fundamentals/lab/README.md +++ b/unit01_cipher_fundamentals/lab/README.md @@ -240,7 +240,8 @@ Note: In Python 3.x, we using input() instead of raw_input(). # Setting up AWS You should have an account for AWS. Access your AWS Lab, and - +# AWS Setup +In future labs, we will be using AWS KMS (Key Management System) and AWS HSM (Hardware Security Module). We will be using the command line consolea and the AWS Management Console. If you have time, please setup a Linux instance. # Additional Lab ## D Simple prime number test