VS 2005 With Encryption Function?
Oct 27, 2009
I am using the following
Public Function EncryptString128Bit(ByVal vstrTextToBeEncrypted As String, _ByVal vstrEncryptionKey As String) As String
Dim bytValue() As Byte = Encoding.ASCII.GetBytes(vstrTextToBeEncrypted.ToCharArray)
[code].....
View 1 Replies
ADVERTISEMENT
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
Jan 6, 2012
I have data from an Informix database that has a column with data encrypted using the Informix function ENCRYPT_TDES. The data was imported into SQL SERVER 2008 and I no longer have access to a running instance of Informix. I need to write a C# or VB.NET function for decrypting that data. Anyone know how to write a C# function to decrypt it?
View 1 Replies
Feb 8, 2010
If I'm not mistaken PHP crypt() function use DES-based encryption algorithm. So I've search DES Encryption code and all that I found is code that similar to the one in this post http://www.vbforums.com/showthread.php?t=471798
But with those codes I must enter 8 character lenght salt. Less then that the code wouldn't succeed. In the other hand. The PHP crypt() function only could use 2 character length salt. If you enter more than that, it seems it only use the first 2 character..[URL]
View 1 Replies
Aug 25, 2009
I'm using the cryptography classes in .net to encrypt and decrypt files. When I encrypt a txt file, then decrypt in my code it works fine. But when I encrypt an xml file and try to decrypt it within my code I get an error saying "padding is invalid and cannot be removed." I am setting the padding during both the encryption and decryption as:
PaddingMode.PKCS7. Do you think the file being an xml file has something to do with the error that's occuring? Also, should I or should I not be setting the padding for both encryption and decryption?
View 5 Replies
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
Jul 31, 2010
I have Ln in my function that I write in excel but in vb it doesn't work
0.215*Ln(4.32/0.3)
it should return the value = 0.573
how can I write this function without using log function (I don't know logs functions)
View 5 Replies
Jun 28, 2010
Is this a good way of getting out of a function?
If f1.AppendLine(strTextMsg, strText) = True Then
Return True
Exit Function
Else
Return False
Exit Function
End If
This is in code that I'm taking over and finishing and I'm just wondering if I should be skeptical of this logic. The programmer seemed to overly-use "Exit Function" (like right before an exception handler would be called as if he thought if he didn't have it he'd fall right through into the exception handler even when there was no exception).
Personally, I would've just coded: Return(f1.AppendLine(strTextMsg, strText))
View 6 Replies
Jan 24, 2012
I want to know how's the function KeyPress, on VB 2005, when it comes to the Help Buttons (F1, F2, F3)
View 3 Replies
Jun 7, 2009
using the string function in VB 2005:1-When do we use string fucntion with paranthesis and without paranthesis ex:
Me._aldata = New ArrayList
Public Property getitem(ByVal intindex As Integer) As String
Get
[code]....
I'd like to know do i have to put paranthesis at all times?
View 3 Replies
Dec 22, 2011
I'm working on an updater for my applications. I'm using VB .NET 2005. So, when I push the button called "Download" it runs twice and does the following: Download the file (~20mb). When the file is downloaded then it does again the same overwriting the first file. I used the following to make the download possible:
[Code]...
View 10 Replies
Oct 3, 2009
Function test(ByVal res As Integer) As Integer
res = 2
Return res
[code].....
View 9 Replies
May 17, 2010
I have a datagrid with a list of items. Each item has an url for a picture. For each item I have to download the picture from the url, and then show it in the grid. This takes quite a long time, and freezes my application while running.
Is it possible to do this in the background, while allowing the user to take other actions? For example, scrolling down the list to see the items that have been loaded. Or clicking on an item in the list, which calls another function. Maybe doing something on a different form. And doing this while the list continues to load in the background.
View 15 Replies
Nov 24, 2010
I have few columns in a datagridview,out of which one is of type Button and another is of TextBox(which is hidden). When the user clicks on the button in the column , i want to execute the function whose name is written in the corresponding column.
View 6 Replies
Aug 8, 2009
I have to turn the GetFwt function on the code into a sub procedure. Below is the original
' Project name: Harvey Industries Project
' Project purpose: The project calculates an employee's weekly net pay.
' Created/revised: <your name> on <current date>
[Code]....
View 1 Replies
Aug 20, 2007
I'm trying to create a VB .NET Sub (or function) to access to FTP server (FTPS, login, password). The purpose is to delete a specified file on this server. I have create a function which work with FTP (see below) but I need the same with FTPS. [Code]
View 3 Replies
Feb 9, 2010
I can't seem to get one of my functions to work based on a timer. Every tick of the timer, I'm trying to call a function which will start periodically taking screen shots until the 'Finish' button is pressed. However, I've run into numerous errors and wondered if anyone could give me any insight or suggestions. Here is what I have so far.
[Code]...
One of the errors included "Public Sub RunAC() does not have the same signature as delegate". This might be really obvious, I'm a recent Computer Programmer / Analyst graduate with intermediate VB.net experience.
View 3 Replies
May 15, 2009
I have a function designed to detect if the program is being run on Win7. However, when it is run on a Win7 machine, it says it is NOT a Win7 machine. [Code]
View 3 Replies
Jun 1, 2009
I have trouble with my vb application.I create query in dataset like this :Select * from Trans where year(dateTrans)=2009 and month(dateTrans)=5But is not work and error message : year and month function not identified, what is the problem ? what a sql date function ?If i create databound from dataset and drag n drop date field in form with datetimepicker control, if i had update dataset, date field is empty.Whats wrong with datetimepicket databound.
View 5 Replies
Dec 22, 2009
I want my function to return a value of a structure. The function is supposed to change the values and then return the answers in one structured value. Here is my code... as you can see it does not work... it needs a LOT of things. I placed question marks were i am really lost.
[Code]...
View 13 Replies
Feb 25, 2009
I have a 2 dimensional array of groupboxes that I use to populate a form setup so the first indice is a tab number and the second is the groupbox number.The user can dynamically add tabs to the tabcontrol but I need to add and populate groupboxes to the new tabpage and I can use existing groupbox data in the array for default values.I understand I have to code a deep clone of the source groupbox as it has textboxes in it so I want to add a cloneGBox function that returns a new, populated groupbox when I pass in the x,y indices for the source groupbox in my array.
dim gbx as groupbox = cloneGBox(x,y)
and code cloneGBX as
public function cloneGBox (byval x as integer, byval y as integer) as groupbox
[code].....
View 7 Replies
Jun 5, 2010
I am generating a page of HTML dynamically, which I then display in a WebBrowser control. Is it possible to have a button in my HTML which, when clicked, will call a sub or function in my VB?
View 4 Replies
Sep 6, 2011
I have probleam with my code, currently i am create scientific calculator which have function sin, cos & tan. The code i create it not working because every time i convert the function it will show 0 as answer. how to correct my code here.
Public Class Form1
Dim total1, total2 As Double
Dim [Operator] As String
Const conversionFactor As Double = Math.PI / 180
Dim result As Double
total2 = Val(answer.Text)
[CODE]...
View 4 Replies
Sep 8, 2010
I have two datetime pickers that when changed call a function that validates the two dates and changes them as needed. This currently causes a loop where the function changes the dates on the datetime pickers that triggers the function again...
So I would like to disable the datetime pickers valuechagned function while the function runs then re-enable it after it makes the required changes.
Private Sub dtpStartDate_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dtpStartDate.ValueChanged
subValidateDate()
[Code].....
View 1 Replies
Sep 7, 2010
I want to specify an List(Of String) as an Optional function argument. But i am unable to initialize it in the function declaration.
View 1 Replies
Aug 18, 2010
I'm trying to make a simple game tree.Previously I used nested loops:
[Code]...
View 10 Replies
Jun 28, 2010
how can i get the illegal character in a string
for example
dim Strto_check as string = "1+2-2"
dim Listof_Illegalstrings = "~!@#$%^&*()_-+=-?/.,><|" ""
now i want a function to find out which is the invalid character available in the strto_check variable and then replace it with a standard place holder
View 7 Replies
Aug 11, 2009
what is the exact meaning of the function:
cmd.ExecuteNonQuery()
Though i used it a lot of times while inserting,updating or deleting the entries of the database but my basic concept about this statement is not clear.......
View 6 Replies
Feb 14, 2009
Im having problems calling a button click event.I have an ajax modalpopupextender inside of a gridview.The error im getting at btnOk_Click is Quote:Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
View 1 Replies
Mar 19, 2009
How I can check when someone uses the standard paste function via rightmouseclick? I want to check something before the text can be pasted.
View 3 Replies