Change The Keysize And Maybe Even Choose Between MD5 And SHA1 Encryption

Feb 2, 2012

Here is some code that I have that works perfectly:

[Code]...

Is it possible to change the keysize and maybe even choose between MD5 and SHA1 encryption with this code? If not, can someone point me in the right direction to find some that does?

View 1 Replies


ADVERTISEMENT

SQL Statement - Change The Word Mobinil When The User Choose Another Item From The Combobox?

Oct 14, 2009

the below statment is right 100% but what i need is to change the word mobinil when the user choose another item from the combobox

cmd.CommandText = "select * from warehouse where mobinil ='" + ComboBox2.Text + "'".I thought that i can do the follwoing dim x as string x= here will be the item selected by user- and ofcourse i need it to be put instead of the word Mobinil
cmd.CommandText =

"select * from warehouse where x value ='" + ComboBox2.Text + "'" is that possible ?

View 8 Replies

Generate MD5 And SHA1?

May 26, 2011

I'm using the below function to generate an MD5SH1 hash for SQL backup files.This works well, has progress report etc but is slow if using large files.

Could I generate the MD5 at the same time as SH1 rather than having to process the file twice, doubling the time taken? What about converting an MD5 result to SHA1?

Imports System
Imports System.IO
Imports System.Security.Cryptography
Imports System.Text

[Code]...

View 1 Replies

Creating An SHA1 Generator In VB?

Jun 21, 2010

I've been trying to work on a personal project, in which the user enters in a text string in the first text box, and when the user clicks the "encrypt" button, the SHA1 hash of the text appears in the next text box. I've googled around for some information on this, and haven't found much for Windows Forms and SHA1, only MD5. I've checked a lot of things on MSDN but to no avail.

View 1 Replies

Encrypting Strings With SHA1?

Jul 18, 2009

how to encrypting strings with SHA1, but all of the code I have found does not work or it is to complex for my program. I have found a website that has a encrypting demo program. It worked well so I email the programmer and he gave me this code.

[Code]...

View 8 Replies

Key - Decrypt A SHA1 String

Jan 26, 2011

Is it possible to decrypt a SHA1 string in VB.Net, knowing the key? I have seen "decryption" of credentials before, however - in Java: [URL]

View 3 Replies

Different SHA1 Hash Values Obtained From PHP?

Sep 7, 2011

I have some problems with the SHA1 hash value of a string. I'm trying to send a file from a client written in VB.net to a server written in PHP. My problem is that when I pass the same string to VB.net and PHP, the SHA1 value calculated by VB.net is completely different from the value calculated by PHP.

For example, I want to encode a string in Base64 and then calculate the SHA1 Hash of the Base64 string. When the computer executes this task from the vb.net version and from the PHP version I get two different SHA1 values, even if apparently the Base64 encoded string is the same:

VB.net: 2E97A53B09C482A831540B532845BCAC79BFACCF
PHP: 350A2080264E2724D4BCBC521C35264D264A1DAF

I'm surely missing something, could you point me in the right direction and tell me what I'm doing wrong here?

[Code]...

View 1 Replies

Generate MD5 And SHA1 Hash For File?

May 26, 2011

I'm trying to generate an MD5 and SHA1 hash value for a given file with the following:

Imports System
Imports System.IO
Imports System.Security.Cryptography
Imports System.Text

[Code]...

View 11 Replies

.net Encryption Result Does Not Match The Xcode Encryption Result Given The Same Input Parameters?

Jun 21, 2011

I have set up a method in vb.net and in xcode for encrypting a string using as far as i can tell the same parameters for an AES encryption.I've looked all over the place but cannot find information on whether they use the same encryption algorithm and settings.

this is the vb.net code:

Dim encryptAES As New AesCryptoServiceProvider()
Dim encoding As New UTF8Encoding()
Dim encryptor As ICryptoTransform
encryptAES.Key = encoding.GetBytes("12345678901234567890123456789032")
encryptAES.IV = encoding.GetBytes("1234567890123416")
encryptAES.Mode = CipherMode.CBC

[Code]...

View 1 Replies

VS 2010 Randomizing - Program Randomly Choose Questions - NEVER Choose Same Question In Same Program

Dec 20, 2011

I am currently working on a family project which is based on "Who Wants To Be A Millionaire?" show. There is a huge diffrence between the show and my project. My project is a christmas edition and the goal is not to get money or something, since I will not add it... Erhmm... Let me get to the point. I have already designed a layout and scripted some things. I have about thirty questions but I do not want them to always spawn in the same array, if you know what I mean. I want the program to randomly choose one of those thirty questions and NEVER choose the same question in the same program run. By the way, there are four options on my project: A, B, C and D. I have got everything, I just need a code.

View 3 Replies

.Net Using RSA Encryption?

Mar 25, 2012

is there anyway that I can convert this to use RSA encryption?

Imports System.Text
Imports System.Security.Cryptography
Imports System.IO
Public Class ClsEncryption

[code].....

View 1 Replies

Encryption App Using Xor .net?

Jan 28, 2011

I have been trying to create an app that will do xor encryption. I have tried a few different functions but none of them seem to give me what I want. I need it to put the coded text into a 7 bit ascii string. For example if the key was a - 1100001 and the text to be encrypted was s - 1110011 then it would return 0010010 as the encryption. One of the pieces of code I tried to use

Public Function XOREncryption(ByVal CodeKey As String, ByVal DataIn As String) As String
Dim lonDataPtr As Long
Dim strDataOut As String
Dim temp As Integer

[code]....

This returns a hex digit though which will not work for what I want.

View 4 Replies

IDE :: Dll Encryption?

Sep 3, 2009

have made a library for my vb.net project by combining 3 libraries (using ilmerge).

View 3 Replies

Raw RSA Encryption With VB

Nov 15, 2011

I am attempting to create a program that can do raw RSA encryption (performing the encryption without using 'Encrypt' and 'Decrypt') of a user's message that can contain a-z, A-Z, 0-9, and [,.;:'"()]. I've attached a screen shot of the application form.

Basically, the user will pick from a list of prime numbers from the first box and input them into p and q. They will type their message in the designated textbox and then hit <encrypt> which will encrypt using p and q and then show the encrypted message below. I'll leave out the Key box since that deals with the math behind the encryption.

The part I am stuck on right now is assigning a number to each one of the characters so that it can be encrypted. These numbers need to remain the same so that the message can be decrypted as well.

View 19 Replies

.xml Encryption For Protection?

Nov 23, 2010

i have this .xml file read and display at runtime by vb.net2003. the .xml file is the database which contain various data and its not for adding more data or edited by user so i need to protect the file so that my code can read and display those data. can anyone know how to protect the file.

View 1 Replies

AES Encryption / Decryption

Feb 1, 2012

Here is some code that works well for strings:

[Code]....

modifying these functions to encrypt/decrypt byte arrays rather than strings. Also, to have the functions return the encrypted/decrypted byte array, rather than a string.

View 2 Replies

Barclays Encryption Asp.net (VB To C#)?

Oct 12, 2011

I am trying to implement the encryption script from Barclays payment gateway, however it's in VB and the rest of our site is in c#.

The script is

Public Class Example
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "

[code]....

How am I able to either run this VB in my C# aspx page? Or do I need to convert it to use c#?? In my aspx page, I have the first line

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" CodeBehind="encryption.cs" %>

View 2 Replies

Encryption Of Txt Files

Jun 2, 2009

my program takes a txt file and encrypts it successfully but it returns the wrong thing when decryting.[code]

View 4 Replies

Getting AES-Encryption Work In .NET?

Sep 23, 2010

I have a problem with an encryption made in AdobeFlex and which I need to translate to VB.NET.The core is a AES Encryption, but I tried several ways and code and the encrypted strings weren't the same The original Flex Sourcecode is:

VB
private function encryptAES(arg1:String, arg2:String, arg3:String="aes128-cfb8", arg4:String="None"):String
{
var loc1:*=com.hurlant.util.Hex.toArray(com.hurlant.util.Hex.fromString(arg2));

[code]....

My question is how to get the code work in VB.NET

View 3 Replies

MD5-encryption Is Acting Up?

May 30, 2011

I have a problem with an MD5-hash algorythm that's acting very oddly.Here's the

vbcode
Imports System.Security.Cryptography
Imports System.Text

[code].....

View 2 Replies

RSA Private Key Encryption?

Aug 10, 2009

I'm looking to use RSA Asymmetric encryption to encrypt some data. I've read this article on the forums with a similar title, but it did not answer my question. What I would like to do is use the private key of an RSA key combination to encrypt (sign?) the data and use the public key to decrypt (verify?), as per this wikipedia article . I would like to use this method because I want people to be able to read the data, but not create it themselves. I've copied the code from Peter Bromberg's article RSA Encryption in .NET Demystified , but always get an exception with the "Bad Key" message. If I use the public key for decryption, it works fine (the opposite of what I want). use the public key for encryption.

View 2 Replies

SQL Password Encryption?

Oct 20, 2011

In my database I have a column that contains the passwords, and I use the

View 3 Replies

Using Own Encryption Algorithm In VB?

Aug 21, 2009

How would I be able to use my own Encryption Algorithm in my program such as encrypting text. I havn't been able to figure this out.

View 1 Replies

VS 2010 Getting The AES-256-CBC Encryption?

Apr 19, 2012

i have in php two functions, one to encrypt and one to decrypt.

PHP
function Encrypt($message) {$Method = "AES-256-CBC";$passPhrase = "key";$iVector = 1234567890123456;$encryptedMessage = openssl_encrypt($message, $Method, $passPhrase, $iVector);return $encryptedMessage;}function Decrypt($message) {$Method = "AES-256-CBC";$passPhrase = "key";$iVector = 1234567890123456;$decryptedMessage = openssl_decrypt($message, $Method, $passPhrase, $iVector);return $decryptedMessage;}

what i want to do, is encrypt a message, using the same method in vb.net as i do in php, how would i go about doing this?

View 4 Replies

Which Encryption Method Is Better?

Aug 9, 2009

I've seen a lot of threads on the web discussing about which encryption algorithm is better.According to what I've read, AES encryption algorithm is based on Rijndael's algorithm, and the first is the one being implemented by the US's government to secure TOP SECRET files.From what I've tried RijndaelManaged only supports 128bit long keys (that would be a byte array with 16 byte values, right?) and not 256 as I had first thought; however, AES seems to support 256bit keys (or is it all the way around?), I haven't personally tried DES nor TripleDES.

So, which one is better or more secure? And what's up with asymmetrical encryption? What's the difference? Can both symmetrical and asymmetrical encryption be used for the same thing?

View 24 Replies

.Net And PHP Rijndael Encryption Not Matching?

Sep 12, 2011

At first i thought it was the padding since mcrypt uses zero padding but i changed the php to use PKCS7 and get the same exact results.I think it has something to do with the padding in the php.Test output from .Net:

Key: d88f92e4fa27f6d45b49446c7fc76976
Text: Testing123
Encrypted: /DMkj7BL9Eu2LMxKhdGT+A==[code]......

View 2 Replies

.Net DES Encryption Function, To Triple DES?

Mar 14, 2012

Public Shared Function DESEncrypt(ByVal Data As String, ByVal Key As String) As Byte() Dim IV() As Byte = {&H12, &H34, &H56, &H78, &H90, &HAB, &HCD, &HEF}

[Code]...

this is what I currently have for my DES encryption, but as I am fairly new to VB.Net I can figure out how to make it use Triple DES rather than DES

View 1 Replies

Compressible Encryption In PST File?

Apr 13, 2012

I would like to read the contents of an existing Outlook 2007 PST file by VB.Net. I find already the file and record structure, this is not a problem. But I have a problem with the compressible encryption how is used. Now I have read that this encryption is based on a simple byte-substitution cipher with a fixed substitution table. But unfortunately I can't find this table. Maybe someone can help me where to find this table or where I to find all the necessary information about compressible encryption.

View 7 Replies

Convert .NET Encryption Method To PHP?

Dec 2, 2011

I desperately need this VB.NET code converted to PHP.This is the Instructions I received:To test your encryption, encrypt the following word with these keys and check if you get the same result:

Text to encrypt: MyPassword
Salt key: *&^%$#@!
PBE Key: FWV70700[code].....

View 1 Replies

Database Encryption And Decryption?

Jun 29, 2011

encrypt MS Access database and also decrypt it.

My purpose is to encrypt the database so that it cannot be open independently without using the application. my application should still be able to access it read/write.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved