Convert A Public Adaptation Of The Whirlpool Hash From Java To .NET?
Nov 9, 2011
I am trying to convert a public adaptation of the Whirlpool hash from Java to VB.NET, I am getting errors that do not make sense to me and thusly I don't know how to fix them.
I have a function in VB.net that returns a password hash. I need to make a web interface to the same database and I'm not sure how to return the same hash in PHP. Does anyone know both languages enough to convert this to PHP?
Code: Public Function GenerateHash(ByVal SourceText As String) As String 'Create an encoding object to ensure the encoding standard for the source text Dim Ue As New UnicodeEncoding()
as part of a small encryption program i am making, i am converting the contents of a textbox to hashcode. I used the built in feature for this:.GetHashCode Now once i have the hash code how do i convert it back to regular letters?
I am a Java developer. I have the task of converting a VB class to Java.Can some VB developer comment the following VB code so that I can write its Java equivalent?
Public Class RmaValidationCode ' Values for test type Public Const SOFTWARE_TEST_TYPE = 0
We are developing an Android Application (Java) that reads an image, encode the bytes in base64 to send them over HTTP (via GET) to a WebService written in VB.NET.On .NET side, they are using this :
Dim Pix As Image Pix = Image.FromFile("C:UsersPublicPicturesSample PicturesTree.jpg") Dim ms As New MemoryStream[code]....
How can I pass the correct string to them to correctly decode the image from Java encoding (unsigned) to .NET decoding (signed)?
i need to convert a Java tool into a VB (2005) application. Most things are fairly straight forward, but i have on a few lines my problem the appropriate VB function to find.
i'm using the following algorithm to encrypt and decrypt a string in VB.NET and wanted to do that same method in Android also.
Encryption:
Private Function decryptStr(ByVal key As String, ByVal enc As String) As String Try DES.Key = Hash.ComputeHash(System.Text.ASCIIEncoding.ASCII.GetBytes(key))
I wrote a Java class that parses a bpel text file and then returns a count of the number of occurences of certain words. I wanted to convert it to VB2008 Forms application, so that its results are displayed in a TextBox and not on the console. The problem is that VB2008 lacks Scanner and StringTokenizer classes, which are in my current Java class. Am not sure how to get the same functionality (or better) in VB2008. Can someone out there help to convert this class.
I am trying to learn OOD/OOP and read on the net that I am not supposed convert SQL tables into classes. But I cannot find an explanation why not to do it or which tables to skip. So I made an web application based on the below diagram. It works perfectly well. But I do not use OO. which table should not be mapped into a class and why not. do not use LINQ or NHibernate, etc as I do not understand them. I just need to understand the OOD.
I've been obsessed with this since I explored it this morning.The post by John Wein shown here fostered a renewed thought about something I've wanted to do for a long time: Generate a "safe" list of folders/subfolders to search in. Whether we're trying to copy or just look through them to show them in a list or whatever else, invariably we're faced with the exception of "Cannot access", usually due to System Volume being attempted to be accessed.John came up with a brilliant strategy in that it's effective, fast, and done with such little code! My hat's off to you John!Now to the purpose of this post. I've taken his code and modified it (only to be run in debug mode so you can see exceptions) and I'm wondering if anyone would care to set up a little test project and run it also - so we can see if in fact we may now have an effective means of generating a list of safe folders/subfolders as preface for whatever other file operations happen next?
Copy and paste the following and let me know the results? Change the drive/folder as you like and let me know if it runs into an exception?
I have been tasked with setting up an internal web application to become public facing. The web site was written in ASP.Net and I am just looking for some advice about how I should go about this procedure. Apart from hosting the site on a public facing server I don't know what else I would need to take into consideration.
I am trying to Convert a data field stored as IMAGE ( SQL Server 2000) using Java to a byte array using VB.NET Java uses signed numbers for a Byte array where as VB dosent. Can somone point me to how I can covert java byte array to VB byte array?
I am at a bit of a loss at the moment. What I am basically writing is the password elements of a membership system. What I do is generate a random salt value, take the registered password, combine the two and then pass the new string through a function which will generate a SHAManaged 512 hash.
I then convert the hash and salt string into Byte arrays and store these in my database.The problem comes when I then compare a login attempt against the original value I am being supplied with a completely different hash for the password being presented by the user, even though it should be exactly the same.
Here is my code when someone registers their new account:
I have an openfiledialog, I show the dialog and the user selects there file. How could I calculate the MD5 hash of the OFD.filename/file opened? Or calculate the SHA1, what ever is easiest.
I know MD5 hashes have been asked about 1000+ times, but this question is slightly different.I am looking to find the true MD5 hash of an image, but without using a string for the file's location. I am looking to be able to call on the image inside of a picturebox rather than somewhere on my computer or the internet.
For example, I want to find the MD5 hash of an image inside of my picturebox.
If this doesn't make sense, please ask any questions you may have.
im creating a simple login / registrate form in visual studio 2008 anplant Hash and salt to my login and registrate forms, im using mysql to connect to a online mysql serverthis is my codes i ahve now
Form 1 - Login Try DB_Connect = New MySqlConnection()
[code].....
i really need this working, all works but nothing is encrypted
I have a page with a URL that includes a hash value (www.mysite.com/#123).What I want to do is use that value to determine what is displayed on the page - much like using a querystring.I am using the hash value because the content on the page can be changed client side (I am avoiding page reloads where possible) - if the user then links to another page and uses the back button to return, I need to use the hash value to display the page as it was when they left it.So I'm looking for an if statement that will look something like this:
I would like to write a function GetHashCodeOfList() which returns a hashcode of a list of strings regardless of order. Given 2 lists with the same strings should return the same hashcode.
ArrayList list1 = new ArrayList() list1.Add("String1"); list1.Add("String2");
[Code].....
I can first sort the list, then combine the sorted list into 1 long string and then call GetHashCode(). However sorting is a slow operation. I can get the hash of each individual string (by calling string.GetHashCode()) in the list, then multiplying all hashes and calling Mod UInt32.MaxValue. For Example: "String1".GetHashCode() * "String2".GetHashCode * ... MOD UInt32.MaxValue. But this results in a number overflow.
I'm trying to figure out a way to compare two "salted-hash" strings. How can I do this? I know that the salt is a random generated value that's appended to the plain text, then we just compute the hash of that new string.So how can I compare these two values? O_O (The new hash that the user hash written in a textbox and the hash stored in a database)