RC2 is a symmetric-key block cipher with 64-bit wide block and variable key sizes. This tag strictly relates to cryptograhy and its implementation and should not be confused with the release candidate version of software products.
Questions tagged [rc2-cipher]
19 questions
7
votes
2 answers
How secure is 64-bit RC2?
In encryption, would two symmetric algorithms be considered to be equal in terms of security if their key sizes are equivalent? (i.e. does a 64-bit RC2 algorithm provide the same exact security that a 64-bit AES algorithm would?)
How secure (or…

Senseful
- 86,719
- 67
- 308
- 465
6
votes
2 answers
Node.JS RC2-CBC Encryption and Decryption ciphers are not matching with C#
I have an existing encryption and decryption login inplemented in C# using RSC2-cbc algorithm using Key and IV. Now I am going to implement the same in node.js. So I have written following code to encryprt and decrypt. The problem I am facing is…

user1808114
- 61
- 3
2
votes
1 answer
RC2 decryption from wincrypt API to Go
I want to rewrite old C code from 1990 to Go. But the pain point here is migration of cryptographic algorithms. I have the following Cpp code that successfully decrypts the cipher into plain text.
#include
#include
#include…

maksadbek
- 1,508
- 2
- 15
- 28
2
votes
0 answers
RC2 decryption using CCCrypt
I'm trying to decrypt RC2 data with only 64 effective bits.
Since I can only have 64-bits, it's my understanding that before calling CCCrypt I must use a method to reduce the key down to this many bits. Since I couldn't find any such method in…

Senseful
- 86,719
- 67
- 308
- 465
1
vote
0 answers
Different RC2 encryption results between C# and PHP
I'm trying to achieve the same result I reach with a C# code, using PHP. The encryption algorithm is RC2, using RC2CryptoServiceProvider for .NET and mcrypt() for PHP.
This is the C# part:
public static string encryptRC2(string datastring, string…

Snake
- 106
- 1
- 10
1
vote
1 answer
RC2 key schedule
Can someone explain how the RC2 key schedule works (particularly the very beginning of it)? i know it uses little endian, but my implementation is not working for any key except "0000 0000 0000 0000"
Test Vector
Key = 88bc a90e 9087 5a
Plaintext =…

calccrypto
- 8,583
- 21
- 68
- 99
1
vote
0 answers
C# method to decrypt in PHP
I have a C# code to decrypt data, now I'm trying to make the same in PHP but I can't get the same result. I know that I missing something but I don't know how to transfer this to PHP. Any ideas? Thanks.
This is the C# code:
public static string…

epablo
- 31
- 1
1
vote
1 answer
RC2CryptoServiceProvider .NET algorithm differences with node js rc2 algorithm
Does .NET's RC2CryptoServiceProvider conform to OpenSSL. I'm using RC2CryptoServiceProvider with CBC but the encrypted value for the same text (using the same key and init vector) is different from what nodejs crypto library's rc2-cbc produces. Node…

govin
- 6,445
- 5
- 43
- 56
1
vote
1 answer
RC2 Encryption and Packet Delimiters
I am working on a client/server application and communication between the two is encrypted. I am using RC2 encryption because the client is embedded and CPU resources are limited. I am using the…

muusbolla
- 637
- 7
- 20
0
votes
1 answer
RC2 Crypt SQL Server and C#
He was investigating how to implement an encryption algorithm in my application. He had seen the RC2.
On the one hand, I managed to encrypt and decrypt from c #.
On the other hand, I also managed to encrypt and decrypt from SQL Server.
But what…

JoseMancebo
- 41
- 7
0
votes
1 answer
Looking for RC2 encryption in .Net Core
I'm tasked with writing a bridge program to encrypt some data that will be consumed by a legacy app. The legacy app uses an old library that does RC2 encryption. Specifically it is using a block size of 8 bytes and key size of 16 bytes. The new…

Matthew Allen
- 538
- 2
- 7
- 14
0
votes
1 answer
Visual Studio Team Services .NET Core RC2 build and deploy stuck
I am trying to follow these instructions:
www.visualstudio.com/docs/build/apps/aspnet/aspnetcore-to-azure
for building and deploying my .net core rc2 solution. However, I am getting stuck in in the 2nd part of the build…

pcazar
- 117
- 1
- 6
0
votes
2 answers
Encrypt / secure short string to long
I would like to encrypt / secure input string in the following format "AB123456789000" (two letters and 12 digits) so that the secured "version" can be stored as long (number) in the database.
I have tried RC2 encryption but it gives me 128 bit…

agowad
- 1
0
votes
0 answers
RC2 Encryption/Decryption
When I'm trying to decrypt a string the visual studio throws an exception:
System.Security.Cryptography.CryptographicException and says that length of data for decrypting is invalid. Exception trows when compiler reaches cs.Close() in RC2_Decrypt…

stk213
- 13
- 1
- 5
0
votes
0 answers
Sigabrt error coming while encrypt a string
I got sigabrt error when i encrypt a string using following code.
NSString *name=@"Mobinius"
where key=@"CollaborationKey";
Desired output = vKu5r%2fKEcFpcA62QjBG22w%3d%3d;
code is:
- (NSString *)RC2EncryptWithKey:(NSString *)keyval {
NSData *data…

Gaurav Nigam
- 31
- 6