Skip to content

msatyan/AesModeCTR

Repository files navigation

Copyright 2017 Sathyanesh Krishnan

Licensed under the Apache License, Version 2.0 (the "License")

Aes Encription with CTR mode

This example (AesModeCTR) uses AES256 key with CTR mode for encryption and decryption. Then the data's length does not need to be a multiple of AES's block size.

A pure AES encryption (ECB mode) will produce identical ciphertext blocks for identical plaintext blocks; that may not hide data patterns well. Then it is compromising message confidentiality, so ECB mode of operation is not recommended for any seriously cryptographic protocols at all.

This limitation can be overcome by choosing appropriate encryption modes that best suit for your work. By choosing Counter (CTR) mode we can achieve data protection, parallelization of Encryption and Decryption operation also Random read access too. In addition to encryption key, be careful not to compromise the confidentiality of initialization vector (IV) too while using CTR mode.

About

AES with CTR Mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published