How to get unique Bytes from a String ?

java , css , javascript Lahore, Pakistan
  • 9 years ago

    Hi,

    I want to get bytes from a string value( for Encryption/Decryption purposes ), i have used getBytes() method for that purpose, but every time i call getBytes() method, it returns a new bytes of array each time. I want a unique bytes of array for a particular string. How ? Also i want to store that information (string or byte) in a file, and i want to get back this information in form of bytes.

    Is there a way to get a unique bytes of array for a particular string, each time i use getBytes() or any other method ?

    Thanks...

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook