145 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
95
views
Is key recovery possible for this 4-round 64-bit SPN cipher given 65k known plaintext-ciphertext pairs? [closed]
Given this specific cipher design and known-plaintext corpus, is there a cryptanalytic or structural weakness that enables key recovery or decryption faster than brute force?
The setup is:
There’s a ...
0
votes
0
answers
142
views
Parallel block cipher in CTR mode and variable number of threads: how to deal with internal state and permit decryption?
I'm implementing a parallel block cipher (Morus, to be precise) in CTR mode and I'd like to make it flexible with respect to the number of threads. It is not difficult per se, as I can partition the ...
1
vote
1
answer
270
views
openssl_decrypt(): IV passed is 29 bytes long which is longer than the 16 expected by selected cipher, truncating
I get the error message on the title when I try to login to some accounts from the admin side.
This is the code:
private function decryptString($string){
$ciphering = "AES-128-CTR";
...
1
vote
1
answer
122
views
Cracking a Bitwise cipher
var reverse_flag = [-63, -105, -103, -121, -95, -73, -39, -101, -83, -29, -125, -121, -95, -73, -225, -203, -213, -223, -213, -119];
function check_flag()
{
var i, flag = document....
1
vote
0
answers
3k
views
Error error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT when I try to decripted
In this test, I send a wrapped value and get the encrypted key. Then I try to decrypted it using AES/GCM/NOPADDING and a valid transportKeyIV. Finally in the cipher.doFinal() method I got this error ...
2
votes
1
answer
115
views
Where can I find Java/Kotlin implementations of CTR or GCM block cipher modes?
I have a task to implement pretty rare symmetric block cipher. It's unavailable in popular crypto providers like Bouncy Castle, Sun's JCE and even in GNU Crypto, so I can't use JCE approach.
I got ...
0
votes
1
answer
3k
views
What is cipher option in pyinstaller spec file and how to use it?
Note: I am using pycharm and have virtual environment. Python version is 3.11.1. PyInstaller version is 5.7.0. OS is Mac Ventura 13.2.
I want to build one-folder bundle using pyinstaller with ...
1
vote
0
answers
150
views
POST request to google analytics API with encrypted parameters throws Invalid grant type error
I am trying to generate the Access Token using Refresh token from Google Analytics API. The request which I am trying to send is encrypted using Python libraries. When I run the below code, I am ...
0
votes
1
answer
811
views
Cipher.doFinal() returning part of decrypted string for a long string
I am experiencing an issue when decrypting a string using sunjce :
javax.crypto.Cipher cipher =
javax.crypto.Cipher.getInstance("AES/GCM/NoPadding", new BouncyCastleProvider());
...
0
votes
0
answers
173
views
Breaking Flawed One Time Pad
I have a cyphered OTP message and the sender made a mistake and used a key that was shorter than a message.
The plaintext was not padded before encryption so length of c equals length of m.
How could ...
1
vote
1
answer
521
views
I amgetting System.Security.Cryptography.CryptographicException: 'Length of the data to decrypt is invalid.'
The encryption works fine but I get the exception while decrypting the cipher text.
The cipher text is generated via encrypting 'Test'
Cipher text: u1jeSfKVfSRfSieLX01/uQ==
string encrypt(string ...
2
votes
1
answer
864
views
AES/CBC/PKCS5Padding nodejs encryption
I am trying to convert my java code to NodeJs code. It's a little more complicate because the customised format included the password and salt.
In main method there is one example.
Here is my java ...
1
vote
0
answers
2k
views
Is there a way to generate same encrypted value while encrypting same text using aes 256?
I have a requirement of of encrypt and decrypt the text but each time the encryption value of same text should be generated same.
Suppose if I am encrypting a text "My Name is John". And ...
1
vote
0
answers
67
views
How do i parallelize a ECB-block cipher?
I tried to parallelize my block cipher but it doesn't work right. The code can run but the result is different from not using parallelize .I'm a newbie to OpenMp. The code works fine with out OpenMp. ...
-1
votes
3
answers
534
views
Caesar Encryption in C
Hello I am working on a Caesar encryption program. Right now it takes as an input the file with the message to encrypt, the key
The input is currently in this format:
"text.txt", "ccc&...