473,856 Members | 1,806 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 6070
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
3146
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
6785
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
1501
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
7301
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
7702
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
2314
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
10092
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
10227
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
9911
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
10696
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10780
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9530
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
7093
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
5958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4575
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
4174
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3201
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.