Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7750291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:15:09+00:00 2026-06-01T11:15:09+00:00

Im currently trying to learn some stuff about encryption, it’s algorithms and how it

  • 0

Im currently trying to learn some stuff about encryption, it’s algorithms and how it works in general. I was thinking about a way to go for encrypting large files and the only way feasible to me seems using a symmetric key algorithm.

So i was looking at AES, and while passing 64k or 32k blocks of bytes to a AES object that you create using a hash of the password seems ok , i’m still curious as to the safest way to do this as i keep reading that cryptography is very easy to mess up.

So i get a passphrase, i get its SHA256 checksum, i use that for a key when creating my encrypt/decrypt object.

Other things i couldn’t find an answer for : should i use an IV ? if so i have to make sure the object uses the same IV on decryption that it used on encryption…how do i do that?

Why did i see someone around here say that you should pad the last block of the file even if the number of bytes is divisible by 16?

What type of encryption mode should best be used?

Could you recommend any other resources to go about for learning more about security/cryptography?

Thank you in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:15:11+00:00Added an answer on June 1, 2026 at 11:15 am

    To look at some of your questions.

    Use CTR mode or CBC mode for most purposes. If you need built-in authentication use Galois Counter Mode (GCM). Otherwise use a separate HMAC for authentication, with a different key.

    An IV is needed with all three suggested modes, though in CTR mode it is sometimes called a nonce instead. It can be sent in clear, and is usually prepended to the cyphertext.

    Padding should always be used. Select PKCS7 or PKCS5, they are effectively the same.

    For learning about Cryptography, I would suggest ‘Practical Cryptography‘ by Ferguson and Schneier. I understand that there is an updated version, called ‘Cryptography Engineering‘, which I have not read.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to learn some more in depth stuff of file formats.
I am currently trying to learn some more about web design and I used
I am currently trying to learn about OpenGL ES for the iPhone and following
I'm currently trying to learn regular expressions with some simple "real world" examples. Take
Greetings, I am currently trying to learn some Java programming. To do this I'm
I am currently trying to learn J2ME and build a connect four game (some
I'm currently trying to learn OO Javascript so I can write some cleaner code.
I'm currently trying to learn more about object oriented design in C++ (familiar with
I'm currently trying to learn some Prolog (using ECLiPSe). From time to time I
I am currently trying to learn the fundamentals of jquery and would love some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.