Questions tagged [des]

Data Encryption Standard (DES) is a cryptographic block cipher algorithm.

Data Encryption Standard (DES) is a cryptographic block cipher algorithm.

DES encryption uses a 56 bit key. It is insecure and can be broken in a few hours. It should not be used for new projects.

DES on Wikipedia

648 questions
-2
votes
1 answer

exponential arrival and service rates

I have 2 agent types (say patients). each patient type will need a service after an exponential amount of time. We also have 2 different services A and B which have different service rates (exponential) for different patient types. So in total we…
paris
  • 11
  • 3
-2
votes
1 answer

Practical Applications / Uses of DES algorithm

I am new to Cryptography and studying the concepts for the very first time. Accept my apology for the very basic question Can someone please give me some uses/application or implementations of DES Algorithm that (where its been used) or (where it…
Hassnain
  • 154
  • 1
  • 2
  • 17
-2
votes
1 answer

how to use DES encryption decryption in java with Cipher class

There are other similar questions on SO but none of them solve my problem. So, I ask a new question. I have text to encrypt (String) and 8-byte key to DES encrypt it (and 16-byte key for EDE triple DES encrypt it) as byte-array. How do I use Java's…
vish4071
  • 5,135
  • 4
  • 35
  • 65
-2
votes
2 answers

DES encryption in linux

I'm trying to use the glibc cbc_crypt function to encrypt strings in c the program should be as portable as function which is why I'm using this library here's my code: #define _GNU_SOURCE #include #include #include…
Adel Ahmed
  • 638
  • 7
  • 24
-2
votes
2 answers

Java decryption throws an exception

Here is my encryption method(value is an input parameter): byte key_bytes[] = "12345678".getBytes(); SecretKeySpec _keyspec = new SecretKeySpec(key_bytes, "DES"); Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding"); // Yes, I know I…
John Smith
  • 831
  • 5
  • 19
  • 37
-2
votes
3 answers

What's the benefit of using a well-known encryption algorithm?

I can easily handcraft my own encryption algorithm like the following: // make sure the private key is long enough byte key[] = {0x3e, 0x33, 0x7e, 0x02, 0x48, 0x2a, 0x4e, ...}; byte data[] = "a string to be encrypted".getBytes("utf-8"); for (int i =…
neevek
  • 11,760
  • 8
  • 55
  • 73
-2
votes
2 answers

How to test encrypting algorithms?

We have to implement the DES algorithm. We want to code some functions, but we don't know how to test our DES algorithm. Are there any well-known tools/libraries that we can use to test our encrypting and decrypting functions? We need a 3rd party…
user1072898
  • 475
  • 2
  • 7
  • 9
-3
votes
2 answers

convert byte like this : (b'\xe4\x06-\x95\xf5!P4' ) to a binary string of zeros and ones in python

well ,i have an assignment to implement the operation modes of the DES algorithm in CBC mode : i am stuck at the point where the output of the encryption function gives bytes like this : b'\xe4\x06-\x95\xf5!P4' (i am using DES library from…
-3
votes
1 answer

What data structures should I use if I want to implement a meet in the middle attack in C++?

The attack consists in finding two keys for 2-DES. I know the plaintext and the ciphertext(both in hex) and I have to find the keys. Keys are represented in bits of strings and there are 2^56 possible keys because a key has the lenght equals to 56.…
Martha
  • 5
  • 3
-3
votes
1 answer

C# to Java DES encryption

Trying to create java class which will encrypt and decrypt as like C# code in below. Below is my code for C#, I need to convert it to Java. Can someone help me how to do it? I've been doing this for almost 2 days yet can't find any solutions on how…
Simbu
  • 766
  • 1
  • 12
  • 37
-3
votes
1 answer

Looking for "des" binary?

I am unable to find the linux binary "des", which seems to exist according to this man page. Or if someone has an alternate method, I am wanting to decrypt DES encrypted strings from the shell.
vesche
  • 1,842
  • 1
  • 13
  • 19
-3
votes
2 answers

DES decryption in Ruby

The following is my java code for DES decryption: public static byte[] decrypt(final byte[] value, final String key) throws InvalidKeyException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchPaddingException,…
Kevin Huang
  • 53
  • 1
  • 5
-3
votes
1 answer

DES cryptography with 128 bit output

I have a problem with normal DES encryption in C#, I want an output string with 16 char length (16 bytes 128 bit) that it contains only alphabetic and numeric characters.
Prime
  • 69
  • 2
  • 12
-4
votes
2 answers

Should encryption algorithms like DES be applied on bits or bytes?

I've found some code samples on the internet which are encrypting bytes using CipherInputStream or something...What if I had a file containing like a 1000 bits, how can I apply DES on it?? I'm doing it in java
Uday Kanth
  • 361
  • 3
  • 9
  • 16
-4
votes
1 answer

C bit manipulation DES permute

I was having trouble with implementing the DES algorithm in Python, so I thought I'd switch to C. But I've ran into an issue, which I haven't been able to fix in hours, hopefully you can help me. Here's the source: int PI[64] =…
Igor
  • 1
1 2 3
43
44