Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert string to short string and back again...

Status
Not open for further replies.

Brianfree

Programmer
Feb 6, 2008
220
GB
hi, is it possible to convert a string of 20 chars like...

10765589346512987111

To a short string of 10 chars like...

af127ac455

and back again?

Does not need to be secure, just need to convert a long string into a short string to be used on a 3 of 9 barcode
and then back again the other end!

Please can anyone advise?

Many thanks

Brian
 
After converting to hex, add leading zeros if you need exactly 10 digits.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top