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

  • Home
  • SEARCH
  • 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 6585729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:42:02+00:00 2026-05-25T16:42:02+00:00

I am trying to implement DES encryption in asp.net application from the given link:

  • 0

I am trying to implement DES encryption in asp.net application from the given link:

DES encrypt/decrypt

as per given code its working fine but if i add one more character in bytes variable its throwing exception

static byte[] bytes = ASCIIEncoding.ASCII.GetBytes("ZeroCool"); //Working fine
static byte[] bytes = ASCIIEncoding.ASCII.GetBytes("ZeroCoola"); //throwing exception

enter image description here

Anybody have idea how to resolve this one?

Is there any limit of 8 character in DES encryption?

Thanks

  • 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-05-25T16:42:02+00:00Added an answer on May 25, 2026 at 4:42 pm

    DES supports 56-bit keys, so you can’t add another one. Actually 56 bits = 7 bytes, so I supposed "Zerocool" worked because all the characters are standard ASCII, and those only take 7 bits each.

    That being said…

    1. DES is a really old cipher. A 56-bit key can be easily bruteforced by a modern home computer. You should be using ciphers that support larger keys, like AES.

    2. I read this at the end of the article:

    Using DES, you can encrypt or decrypt users’ passwords or something else, and you can delve into the algorithm if you like.

    Which has got me concerned. Passwords should never be encrypted. On the basis of that statement alone, I would disregard the entire article as useless.

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

Sidebar

Related Questions

Trying to implement the decorator pattern in C# from the code in the Head
I'm trying to implement the code from showing dialog while loading layout by setContentView
Am trying to implement a generic way for reading sections from a config file.
Found a really nice code for Accordion nav and am trying implement on our
I am trying to implement password based encryption algorithm, but I get this exception:
I am trying implement Unblock me Puzzle. i want to change image position from
SetFocus I'm trying implement the above Se Focus code in a Class Library that
Trying to implement this gallery on my website. http://coffeescripter.com/code/ad-gallery/ It is noted in the
Trying to implement the following structure from c to use NSArray in objective-c: In
I'm trying implement a bracket in my program (using C#/.NET MVC) and I am

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.