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


ADVERTISEMENT

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

Easy Encryption / Decryption Method For Strings

Jul 26, 2011

I'm trying to find a simple and easy encryption/decryption method for strings. The strings will contain spaces, special characters, numbers, and letters. I just need to be able to encrypt/decrypt them.

View 3 Replies

Text Encryption Using Replace Text Method?

Oct 15, 2009

Suppose:i Have Two text Box One for For Typing & second for Replacement of TextI want to Replace Text With Following:

[Code]...

View 1 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

Strongly-typed Generic Method Invokes Its Argument's Base Class Method Instead Of A Shadowed Method In T?

Oct 19, 2010

Consider a MyForm class that contains a shadowed implementation of Show(). It also contains a CreateForm() method, which accepts an instance of the form and calls the shadowed sub:

[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

Does Calling The Dispose Method On A Windows.Forms.Timer Call It's Stop Method

Nov 12, 2009

Does calling the Dispose method on a Windows.Forms.Timer call it's Stop method? Or should I stop the timer before I dispose it?

View 5 Replies

Inheritance - Create A Method Called StartWorking() And Want FrmChild To Inherit - Method

Nov 25, 2011

I have a large problem with inheritance in vb.net. The problem is the following:

I have 2 forms => frmBase and frmChild

In frmBase i want to create a method Called StartWorking() and i want frmChild to inherit this method.

But here is the tricky thing: when frmChild.StartWorking is called i would like the following => without calling MyBase.StartWorking()

I want frmBase.StartWorking() to be executed first and after a test in frmBase.StartWorking if blnValue is true then frmChild.StartWorking has to be activated. if blnValue is false that frmChild.StartWorking cannot be activated.

View 2 Replies

Use The ToString Method And A Counter To Concatenate A File Name Into A String Variable From The Image.FromFile Method?

Dec 18, 2010

I have nine pictures that I need to animate -I need to use the ToString method and a counter to concatenate a file name into a string variable from the Image.FromFile method. Once the counter reaches its maximum value, and the last picture is displayed, the counter should be reset to zero or one depending on how the first image file has been name. Also a static counter variable should be incremented in the time routine. what I have so far -- I know what I have to do; however, I just do not know how to code this properly.. Right now I have this going thru a button procedure but it needs to go through a timer.

[code]....

View 2 Replies

Constrain A Generic Method / Extension Method To Numeric TYPEs Only?

Sep 16, 2010

Write an overload for every numeric type or if possible constrain a generic extension method to just numeric types.

View 2 Replies

Difference Between My.Computer.FileSystem.WriteAllText Method And The IO.StreamWriter Method?

Jun 2, 2011

I just need to know what is the slight difference between them so I know which one to use everytime.

View 5 Replies

Get The Name Of Parent Method/class/file Name Inside Other Method Call?

Feb 16, 2010

I will try to explain what I need.Let's say that I have a class like this:

Public Class Example1 Public Sub ToBeCalled()

[Code]...

View 5 Replies

Reflected Method From A Loaded Assembly Executes Before Calling Method?

Jun 9, 2009

When I am loading an Assembly dynamically, then calling a method from it, I appear to be getting the method from Assembly executing before the code in the method that is calling it.It does not appear to be executing in a Serial manner as I would expect. Can anyone shine some light on why this might be happening. Below is some code to illustrate what I am seeing, the code from the some.dll assembly calls a method named PerformLookup. For testing I put a similar MessageBox type output with "PerformLookup Time: " as the text. What I end up seeing is:

First: "PerformLookup Time: 40:842"
Second: "initIndex Time: 45:873"
Imports System

[code].....

View 9 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

Error: Statement Cannot Appear Within A Method Body. End Of Method Assumed

Jul 13, 2011

Why does my the declaration of my string in the code result in the following error? Is there a workaround?

Code:

<script runat="server">
Protected Sub form1_Load(sender As Object, e As System.EventArgs)
Dim x As String = "</script>"

[code]....

Error: Statement cannot appear within a method body. End of method assumed.

Note: The following page did not fix my issue and instead resulted in the string </script> being output in my page. ( VB.NET hates </script> tag in string literal )

View 1 Replies

First Method Draw() Is Affected By The Standing Property AND Not The Second Method?

Mar 31, 2010

I am not sure whether this is a trick question?One of the object i have has 2 boolean properties, Standing and Sitting.I have a class called student with the 2 methods stated below- Am I coorrect is assuming that the first method draw() is affected by the standing property AND not the second method?Also the way it affects is that it draws an image when the the stugent is standing?


[code]...

View 5 Replies

VS 2010 What's Equivalent Method In .NET Of Picture1.Scale Method In 6.0

Jun 12, 2011

What's the equivalent method in .NET of the Picture1.Scale (0,0)-(10,10) method in 6.0?

View 2 Replies







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