Chapter 13: Cryptography and Steganography

  1. Which algorithm type uses the same key for encrypting and decrypting data?

Symmetric encryption.

  1. Which algorithm type uses two different keys, one for encryption and the other for decryption?

Public key algorithms use two different keys: one for encryption and the other for decryption. Users of this technology publish their public key, while keeping their private key secret. This enables anyone to send them a message encrypted with the public key, which only the holder of the private key can decrypt.

  1. Which package can we use in pycrypto to use an encryption algorithm such as AES?

from Crypto.Cipher import AES

  1. For which algorithm do we need to ensure that the data is a multiple of 16-bytes ...

Get Mastering Python for Networking and Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.