Swapna Parimishetty

Greenhorn
+ Follow
since Sep 17, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Swapna Parimishetty


Hi all
i want to encode a string to base32 in order to hide my variables in the URL
iam able to get the encoded String (base 32 format) from the input string
but while decoding iam not getting the previous string
i have got the Base32 code from the following source

click here

So help is appreciated
thanks in advance..
14 years ago

Ulf Dittmer wrote:Does the code need to be cryptographically secure? If not, you could just run the 16 letter string you have through something like ROT-13.



there is no need of the code to be secured cryptographically

but i want the unique code containing just 0-9 and A-Z
14 years ago

Ulf Dittmer wrote:If you already have a unique 16 letter input string, how would a "16 letter unique code" be any different? Can you give an example of both, so that we know what the result should be?



You are correct but i dont want a meaningful unique code

i need a encoded string with (0-9 and A-Z) characters only

thanks for your immediate reply..
14 years ago

Ulf Dittmer wrote:Welcome to JavaRanch.

If the ID is already unique, then you could just append the subject to it, and truncate the result to 16 characters, no? If the result is less than 16 characters, pad it with some filler character (like spaces).




thanks alot for your reply

my encoding logic generates 24 letter unique code(including special symbols) but i want only 16 letter code(containing 0-9 and A-Z)

is there any way to get 16 letter unique code(containing 0-9 and A-Z) for 16 letter unique input string

thanks once again
14 years ago
hi all

I have a unique string obtained by combining 2 values

>>id(unique)
>>subject(sometimes not unique , variable length)

i have a logic where iam getting a unique code whose length is proportional to subject, but i want a fixed length code

So my requirement is to encode this string to obtain a unique code(fixed length 16 letter) using java

in order to do this what algorithm or logic i need to follow

help is appreciated...

thanks in advance
14 years ago