i have field in database. ex: field name. this field maybe more than 16 byte. how to encrypt data more than 16 byte without cbc, etc?
any function or another ways to do this?

  • 1
    $\begingroup$ Use stream cipher? What is the aim. Just store in the database? $\endgroup$ – kelalaka Oct 11 '18 at 17:14
  • $\begingroup$ This is an XY problem; lookup Format Preserving Encryption (or work around the solution by encrypting the database etc.). $\endgroup$ – Maarten Bodewes Oct 11 '18 at 17:18
  • $\begingroup$ AES without mode of operation operates on exactly 16 bytes, no more, no less. If you post your requirements, we could suggest a suitable mode of operation. $\endgroup$ – CodesInChaos Oct 12 '18 at 13:40

A function that extends your fixed-size cipher to deal with larger inputs is exactly what is called a "Mode of Operation". So any function qualifying would in essence be a "Mode of Operation". There may be solutions if you tell us exactly why a Mode of Operation doesn't work for you

| improve this answer | |
  • $\begingroup$ BaseKing support 192 bits. So if the 192 bits enough this will be a solution. $\endgroup$ – kelalaka Oct 12 '18 at 10:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.