Results 1 to 2 of 2
Thread: Converting String to byte array
- 08-06-2012, 11:39 AM #1
Member
- Join Date
- Aug 2012
- Posts
- 1
- Rep Power
- 0
Converting String to byte array
Hi there,
Is there a way to convert a String to a byte array? See example below.
FROM:
String _salt = "itsmysecret";
TO:
byte[] _bSalt = {'i', 't', 's', 'm', 'y', 's', 'e', 'c', 'r', 'e', 't'};
It will be used to encrypt and decrypt passwords. Each password have it's own salt value.
- 08-06-2012, 01:42 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Converting String to byte array
You could always have a look in the API.
Please do not ask for code as refusal often offends.
Similar Threads
-
CONVERTING BYTE ARRAY to STRING
By Sukeshps in forum New To JavaReplies: 5Last Post: 01-18-2012, 06:08 PM -
A simple question about converting byte array to unicode string
By Genom in forum New To JavaReplies: 6Last Post: 02-17-2011, 01:22 PM -
Converting string to byte[]
By bobo67 in forum New To JavaReplies: 12Last Post: 09-10-2010, 09:10 PM -
Need help converting int to a 4 byte array
By kook04 in forum Advanced JavaReplies: 5Last Post: 02-26-2010, 08:59 PM -
Converting Image to byte array[] ?
By afflictedd2 in forum CLDC and MIDPReplies: 0Last Post: 04-11-2009, 11:33 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks