473,795 Members | 3,333 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generate Key using Cipher Block Chaining MAC

31 New Member
I want to encrypt the ASCII message using Cipher Block Chaining MAC and generate the 8 byte key.How can i achieve this?
Thanks:
Danish Majid
May 21 '07 #1
20 6066
Plater
7,872 Recognized Expert Expert
http://en.wikipedia.org/wiki/CBC-MAC
May 21 '07 #2
RedSon
5,000 Recognized Expert Expert
I want to encrypt the ASCII message using Cipher Block Chaining MAC and generate the 8 byte key.How can i achieve this?
Thanks:
Danish Majid
The document titled ISO/IEC 9797-2:2002 describes 3 algorithms you can use to create this. The document costs money but you can see if your local library or university library can get a copy for you.
May 21 '07 #3
danishce
31 New Member
Thanks for the reply but i implement CBC MAC using vb.net and generate 8 byte key through applying CBC MAC on the whole message. Do you know any website link/article where i can find source code for CBC MAC using vb.net because i can not find any code for CBC MAC in google.
Thanks:
Danish Majid
May 22 '07 #4
RedSon
5,000 Recognized Expert Expert
Thanks for the reply but i implement CBC MAC using vb.net and generate 8 byte key through applying CBC MAC on the whole message. Do you know any website link/article where i can find source code for CBC MAC using vb.net because i can not find any code for CBC MAC in google.
Thanks:
Danish Majid
Microsoft already implements this method. http://msdn2.microsoft.com/en-us/library/aa382459.aspx
You can use their CryptoAPI.
May 22 '07 #5
danishce
31 New Member
The example described in this website used for encrypting data but i want to generate 8 byte key in output through applying CBC MAC to whole message.
suppose sample message is 642 ASCII characters
message=0005422 000002789454602 028020263020024 8898712120..... .
the key generate by applying CBC MAC through this message is
key=24598762

this is my requirement to generate 8 byte key by applying CBC MAC to whole message.

How can i implement this in vb.net ? because i can only find code for encrypting message.
Thanks:
Danish
May 23 '07 #6
RedSon
5,000 Recognized Expert Expert
The example described in this website used for encrypting data but i want to generate 8 byte key in output through applying CBC MAC to whole message.
suppose sample message is 642 ASCII characters
message=0005422 000002789454602 028020263020024 8898712120..... .
the key generate by applying CBC MAC through this message is
key=24598762

this is my requirement to generate 8 byte key by applying CBC MAC to whole message.

How can i implement this in vb.net ? because i can only find code for encrypting message.
Thanks:
Danish
I don't know how to do it in VB but if C++ you would be looking for these functions: http://msdn2.microsoft.com/en-us/library/aa379908.aspx

Hopefully that will put you on the right path to finding the right libraries for VB
May 23 '07 #7
RedSon
5,000 Recognized Expert Expert
I don't know how to do it in VB but if C++ you would be looking for these functions: http://msdn2.microsoft.com/en-us/library/aa379908.aspx

Hopefully that will put you on the right path to finding the right libraries for VB
Actually I found something that will help you better:
http://msdn2.microsoft.com/en-us/library/6yxzeb7e.aspx
May 23 '07 #8
danishce
31 New Member
Still i can not find solution to my problem on generating 8 byte hex key by applying CBC MAC to whole message using vb.net.
Any one can help me out?
May 24 '07 #9
Plater
7,872 Recognized Expert Expert
I am still not sure what you are after, so I'll breakdown some parts

*You receive a message of 642ascii characters.
Is this the real message or an already encrypted message?

*You want to generate an 8byte DECRYPTION key for that message.
Now if the message was already encrypted, I don't think you can determine it's decrypting key just by looking at it, that kinda defeats the purpose don't you think? If the message is plain and you want the key that could be used to decrypt it once it's encrypted, then encrypt it and view the key that was used. Actually I think you can make up whatever key you want and use it to encrypt it.


But I always did bad at cryptology in school.
May 24 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

4
3143
by: hopehope_123 | last post by:
Hi , Where can i find information about db2 block structure? I want to know how it stores rows into blocks , how it handles issues such as row migration / chaining or etc. Kind Regards, hope
5
6780
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would cause. If I could create a large file that could be encrypted, and maybe add files to it by appending them and putting in some kind of delimiter between files, maybe a homemade version of truecrypt could be constructed. Any idea what it...
6
1497
by: nickdu | last post by:
I usually try to stay away from _alloca(). However, I'm considering using it for a logging function. Our current logging function maintains its own buffer which it grows to fit the string being logged. To work correctly in a multi-threaded environment there are locks around the code which log the string. We could remove the locks and just allocate on the heap, but then we could run into heap contention and heap fragmentation. We could...
2
7298
by: Julio C. Hernandez Castro | last post by:
Dear all, We have just developped a new block cipher called Raiden, following a Feistel Network structure by means of genetic programming. Our intention now consists on getting as much feedback as possible from users, so we encourage you to test the algorithm and send us your opinion. We would also like to receive enhancements and new versions of the algorithm, developed in other source languages and platforms. Our idea on developing...
2
7694
by: Bernard Dhooghe | last post by:
The information center writes: "Encryption Algorithm: The internal encryption algorithm used is RC2 block cipher with padding, the 128-bit secret key is derived from the password using a MD2 message digest. " and also explains how the length of the encrypted column can be derived.
0
2310
by: yaipa | last post by:
I snipped this bit of code out of Andrew Kuchling 'pyCrypto' test fixture. Having a need to XOR Binascii Hex strings in my current project, I found it very helpful to cut down on a bit of code clutter. So if you have a need for a Crypto module, this one seems to work off the self without much effort and it comes /w a nice XOR function too boot. :-) PyCrypto can be found at: http://www.amk.ca/python/code/crypto
2
10078
by: danishce | last post by:
Hi, I need to calculate the Cryptographic checksum using ISO/IEC 9797-1 MAC algorithm with cipher block chaining MAC. The resultant MAC length must be 8 bytes. As a sample, the data I am working on now is: Data = '72C29C2371CC9BDB65B779B8E8D37B29ECC154AA56A8799FAE2F498F76ED92F2' Kmac = '7962D9ECE03D1ACD4C76089DCE131543' Resultant MAC(Data)='53265320' (I want to know how to get
4
10218
by: wagn31 | last post by:
i need to use a cipher but I have to used the assigned code in the ciphering i know how to do it, but i am not sure how to add my own dictionary. Here is what i have so far:
12
344
by: iu2 | last post by:
Hi I'm trying to make a method call automatically to its super using this syntax: class A: chained = def pr(self): print 'Hello from A'
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10436
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.