Click here to Skip to main content
15,906,626 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to work with webcams or video for face recognition under vb Pin
droidman16-Aug-10 10:23
droidman16-Aug-10 10:23 
AnswerRe: how to work with webcams or video for face recognition under vb Pin
David Mujica16-Aug-10 10:37
David Mujica16-Aug-10 10:37 
GeneralRe: how to work with webcams or video for face recognition under vb Pin
droidman16-Aug-10 11:17
droidman16-Aug-10 11:17 
GeneralDxSnap Pin
David Mujica17-Aug-10 4:54
David Mujica17-Aug-10 4:54 
GeneralRe: DxSnap Pin
droidman17-Aug-10 7:35
droidman17-Aug-10 7:35 
GeneralRe: DxSnap Pin
jason nelson30-Sep-10 10:02
jason nelson30-Sep-10 10:02 
AnswerRe: how to work with webcams or video for face recognition under vb Pin
Dave Kreskowiak16-Aug-10 11:01
mveDave Kreskowiak16-Aug-10 11:01 
QuestionEncrypt / Decrypt - (VISA-0 Format) Pin
ams201013-Aug-10 11:14
ams201013-Aug-10 11:14 
Hi all,

I'm new to this forum, I will be very happy if some one can help me with this issue.

I am trying to Encrypt / Decrypt a text as the following

The text is in the format VISA-0 is
041242abcdef6789
The master key is
0123456789abcdef

After encrypting with Triple DES I obtain the following string.

Y9cIS8NUsry7ddNV9cSY7w==

I need to obtain an encrypted string in VISA-0 Format, that is 16 bytes.
I tested this data in a simulator and the outcome should be:
7ea13f5c64c7363b
The same in Base64 is
fqE/XGTHNjs=


The code I am using for encryption is:
private byte[] IV = { 0, 0, 0, 0, 0, 0, 0, 0 };





public override byte[] Encrypt(byte[] plainText, byte[] key)
{
//// create the crypto service provider
TripleDESCryptoServiceProvider des3 = new TripleDESCryptoServiceProvider();
des3.Mode = CipherMode.CBC;

des3.Padding = PaddingMode.None;

// create the key
PasswordDeriveBytes passwordDeriveBytes = new PasswordDeriveBytes(Convert.ToBase64String(key), new byte[0]);
des3.Key = passwordDeriveBytes.CryptDeriveKey("TripleDES", "SHA1", 0, this.IV);
des3.IV = this.IV;

MemoryStream memoryStream = new MemoryStream();
CryptoStream cryptoStream = new CryptoStream(memoryStream, des3.CreateEncryptor(), CryptoStreamMode.Write);
cryptoStream.Write(plainText, 0, plainText.Length);
cryptoStream.FlushFinalBlock();

return memoryStream.ToArray();


}


Thanks in advance for your help
Maria
Questionhow to capture a mouse move control in a container in vb.net 2005 Pin
Andraw Tang13-Aug-10 9:54
Andraw Tang13-Aug-10 9:54 
AnswerRe: how to capture a mouse move control in a container in vb.net 2005 Pin
Andraw Tang13-Aug-10 10:20
Andraw Tang13-Aug-10 10:20 
QuestionHow to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 5:28
Andraw Tang13-Aug-10 5:28 
AnswerRe: How to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 6:11
Andraw Tang13-Aug-10 6:11 
AnswerRe: How to show tooltip for a disabled control in vb.net Pin
Luc Pattyn13-Aug-10 6:44
sitebuilderLuc Pattyn13-Aug-10 6:44 
GeneralRe: How to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 6:52
Andraw Tang13-Aug-10 6:52 
GeneralRe: How to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 7:23
Andraw Tang13-Aug-10 7:23 
GeneralRe: How to show tooltip for a disabled control in vb.net Pin
Luc Pattyn13-Aug-10 7:28
sitebuilderLuc Pattyn13-Aug-10 7:28 
GeneralRe: How to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 7:34
Andraw Tang13-Aug-10 7:34 
GeneralRe: How to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 9:23
Andraw Tang13-Aug-10 9:23 
QuestionGet 'Friend' members thru reflection? Pin
ddecoy13-Aug-10 4:06
ddecoy13-Aug-10 4:06 
AnswerRe: Get 'Friend' members thru reflection? Pin
dan!sh 13-Aug-10 4:42
professional dan!sh 13-Aug-10 4:42 
QuestionHow to make a specific tree node unclickable in vb.net 2005 Pin
Andraw Tang12-Aug-10 11:29
Andraw Tang12-Aug-10 11:29 
AnswerRe: How to make a specific tree node unclickable in vb.net 2005 [modified] Pin
ddecoy13-Aug-10 1:31
ddecoy13-Aug-10 1:31 
GeneralRe: How to make a specific tree node unclickable in vb.net 2005 Pin
Andraw Tang13-Aug-10 3:43
Andraw Tang13-Aug-10 3:43 
GeneralRe: How to make a specific tree node unclickable in vb.net 2005 Pin
ddecoy13-Aug-10 3:48
ddecoy13-Aug-10 3:48 
GeneralRe: How to make a specific tree node unclickable in vb.net 2005 Pin
Andraw Tang13-Aug-10 3:49
Andraw Tang13-Aug-10 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.