×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

QR code for username and password (LogIn Barcode)

QR code for username and password (LogIn Barcode)

QR code for username and password (LogIn Barcode)

(OP)
Dear Friends

I want to create a QR code for username and password to log on to my email account. Please give me some advice how to encode that... Specialy Tab opstion (to jump from username in to the password area?


Thank you!

RE: QR code for username and password (LogIn Barcode)

All barcodes are nothing more than a graphical representation of the data within them.

Generally this is done by printing the data using a specialized font.

You can do this by using a specialized off-the-shelf application (most often commercially purchased) or you can do this with your own customized application.

If you are looking to do this in your own application, you can do a Google Search for QR code font to find a font.

If you are looking to do this with an off-the-shelf application, then you can do a Google Search for QR code applications

If you have more questions, feel free to come back with a specific question.

Good Luck,
JRB-Bldr



 

RE: QR code for username and password (LogIn Barcode)

There are two main stages in the creation of most 2-D barcodes, including QR Codes:

(1) High Level:

(a) Algorithmic determination of the most efficient combination of compaction methods, given the input data.

(b) Conversion of fragments of the input data to intermediate 'code words', this conversion is dependent on the compaction mode most suited to that fragment.

(c) Calculation of the appropriate error correction codewords, given the calculated data codewords, and the specified (or calculated) error correction level.

(d) Addition of any necessary padding codewords, given the set of data and error correction codewords, and the required symbol metrics (width, height, aspect ratio, etc.).


(2) Low Level:

(a) Conversion of individual codewords to bar-space sequences (and their placement in the matrix, taking into account 'reserved' positions).

(b) Conversion of those bar-space sequences:

EITHER to a drawing pattern (using raster or vector graphics, as appropriate or desired.

OR to a character selection (perhaps more than 1 mini-character per sequence) using a suitable font.


Generating a 2-D bar-code is AT LEAST an order of magnitude more difficult than doing the same for 1-D bar-codes (and some of those (e.g. EAN-13, Code128) are not that trivial anyway).

So I'd take the advice from jlbbldr and find an off-the-shelf application.

RE: QR code for username and password (LogIn Barcode)

(OP)
Thansk for all information, jrbbldr  and DansDadUK

I have this particular problem. I Can not find the way, how to encode the TAB between username and password in to the qr code. I know that I need to use ASCII key code for TAB, but I can not make it. I use this combination (username~d009password) to create QR code but IT IS NOT CORRECT. When I use a bar code reader to enter my email with QR code it is not usable (the coded text is showen only in to the username text box.

So, my problem is how to encode TAB (jump) between username and password. All three together in one qr code!

Thanks!  

RE: QR code for username and password (LogIn Barcode)

If you are attempting to generate your QR code with an off-the-shelf software package, then contact the manufacturer of the software and ask for their support in getting this to work for you.

If you are attempting to generate your QR code with your own application, you will first need to understand the font.   
 * Can the font support the TAB character?
 * And, if so, what is needed to cause the font to generate the TAB?

When you say that you are using the following combination:
   username~d009password
that would be unique to the programming language that you are using - especially the ~d009 part of it.

In other programming languages is might very likely be done with a different code string.   
That particular part of your question would be better answered by a language-specific (e.g. C#.Net, VB.Net, etc.) forum area.

Good Luck,
JRB-Bldr
 

RE: QR code for username and password (LogIn Barcode)

(OP)
I'm using online free QR Code Generator :( ... for now!
Is there any possibility to create this set (username and password) to create a QR code to use it for automatic log in to your account, any of them (username TAB password)?!

Maybe this is dummy question but I hope there is a solution, for free. :) I hope!

Thank you jrbbldr  

RE: QR code for username and password (LogIn Barcode)

The Horizontal Tab character is the character with decimal code 9, or hexadecimal 0x09.

The attachment is a sample QR Code which encodes

"username" + 0x09 + "d009password"

When you scan it, it depends on the receiving application how non-graphic characters (such as Horizontal Tab) are interpreted.
Some applications will honour them, others may replace them with a substitute character.

RE: QR code for username and password (LogIn Barcode)

"username" + 0x09 + "d009password" ??

DansDadUK - wouldn't that be:
   "username" + 0x09 + "password"
without the 'd009' preceeding the password?

But again, whether you can build your string using:
   0x09 as TAB
     or
   d009 as TAB
     or
   CHR(9) as TAB
     or
   manually do a Copy & Paste of an existing string containing TAB
     etc.
depends on the application and/or the language that is being used.

What is a valid string representation for TAB in one language may not be valid in another language.

If the 'free' QR Code Generator is being used, free or not, it was created somewhere and by someone.   
Maybe with some Google searches a forum and/or a support area could be found to give you the answers on how to specifically use that application as desired.

Good Luck,
JRB-Bldr


 

RE: QR code for username and password (LogIn Barcode)

(OP)
Thanks....  both of you,

searching forums is what I'm doing right now. And I'm still trying to solve this problem. If you got some other idea, I'l appreciate if you shared with me!

It will be interesting if I can create a QR to loggon in accounts. That will make our life much more easier...

Thank you  

RE: QR code for username and password (LogIn Barcode)

You might want to look at the following (also found through a Google Search):
   Encoding ASCII Functions (such as Tabs and Returns)
   http://www.idautomation.com/barcode/qr-code.html#Encoding_Double_Byte

There is says:  ~d009 is used to encode a tab like you posted earlier, but it also indicates that variations are also likely to be encountered based in the language.

They do imply that the code would be:
   "username" + ~d009 + "password"
and not:
   "username~d009password"

Also, have you ensured that your Decoder is correctly working?

That same reference page shows that there are a number of QR Code variations.  Perhaps you are indeed writing a legitimate QR barcode, but it could be decoded by your reader wrong.

Perhaps you might want to read
  Reading QR Code Barcodes
on that same page.

I have used that company (IDAutomation) before and they have a pretty good support group.  You might want to contact them to see if they might help you.

Good Luck,
JRB-Bldr

 

RE: QR code for username and password (LogIn Barcode)

jrbbldr:

From what you are saying, the "d009" is obviously some proprietary method (private to a particular application) of generating a Horizontal Tab character.
If so, it's not a method I'm familiar with.

So all I did was take the original value posted, and assumed that the "~" character was some method of representing the tab character graphically in this post/forum.

So I generated (not using IdAutomation) a QRCode which encoded just what I stated (i.e. two strings separated by a Horizontal Tab (<HT>) character, instead of the "~" character).
... and that is just what that bar-code contains.

zks:

So how does your scanner and target application interpret that sample bar-code?
If it doesn't interpret it as two text strings separated by a Horizontal Tab character, then there is a problem with your scanner, or with how the target application is handling the (non-graphic) <HT> character.

RE: QR code for username and password (LogIn Barcode)

(OP)
Thank you friends.

Can I ask jrbbldr to post the code for that, Please :) ?  So, how you put together username and password and TAB between, so when the scaner read the QR, it will automatically fill both lines (username and paswword and log in)... Thanks!

I'm using this online free code generator:
 http://createqrcode.appspot.com/

Thank you!

RE: QR code for username and password (LogIn Barcode)

Can I ask jrbbldr to post the code for that

The code for what?

Keep in mind that I am generally developing my own code using languages that clients want utilized.  

If you are using some off-the-shelf software package, then you will need to do it THEIR way.
  (Google search for: Extended ascii barcode software download)

If you go this route, you are done.  Just get the software package and do what THEY need you to do.

However, if you are developing your own code, the task can be done in a variety of ways and representing the TAB part of it will be language specific (like I said above).

Remember that for Code 3of9, in order to support the 'extra' keys like TAB, you need to have both your font set and your reader set up to support Extended ASCII, not just 'standard' ASCII.
   (Google for:  code 39 extended ascii font)
   (Google for:  code 39 extended ascii reader)

One way would be to put the whole thing into a single string and then print it out using an Extended ASCII Code 3of9 font.

Some language-specific examples:
   "Username" + "\t" + "Password"   
   "Username" + CHR(9) + "Password"  

Alternatively you could put each portion of the string into its own separate barcode and read them separately.
    "Username"
     TAB character
    "Password"

Basically you need to find out what your own development language needs to use to represent a TAB within a string of characters and then output that to the printer - specifying that it be printed using the Extended ASCII Code 3of9 font.

Good Luck,
JRB-Bldr
 

RE: QR code for username and password (LogIn Barcode)

The attachment contains the input data given to the QRCode generator which generated the sample QR Code I attached in an earlier post.

i.e. "username" + <HT> + "d009password"

RE: QR code for username and password (LogIn Barcode)

Can I ask jrbbldr to post the code for that

Keep in mind that CODE, is not DATA ENTRY TEXT.

It appears as though DansDadUK has provided you with one version of Data Entry Text (not Code) which worked for him to generate a QR code like you want.

But that will be unique to the language in which the Barcode printing application was written in and/or how many optional ways (if any) that the application was written to accept.

Another off-the-shelf application may only accept things in a different manner - that is up to the application.

Again, if it were me, I'd forget wasting time with QR Code and do it all in something more simple like Code 3 of 9.

Good Luck,
JRB-Bldr
 

RE: QR code for username and password (LogIn Barcode)

I'm also not at all sure what the request for CODE is referring to.

The input data I provided in a .TXT attachment in a previous post, if used as input to the "online free code generator" referred to by zks, generates a QRCode bar-code; when scanned, this  returns exactly the same as the input; i.e.:

- the strings "username" and "d009password", separated by a horizontal tab (<HT>) control code character (hexadecimal code 09).

- in hexadecimal,this is:
75 73 65 72 6e 61 6d 65 09 64 30 30 39 70 61 73 73 77 6f 72 64

which is EXACTLY the same as the input text.

I can't see how this data "... will be unique to the language in which the Barcode printing application was written in and/or how many optional ways (if any) that the application was written to accept. ..."; it is just the raw data to be encoded.


And I can't answer the question of how this text (especially the <HT> character) is interpreted by the receiving application, since I don't know that that application is.

Some applications (e.g. NotePad) will honour (i.e. interpret and act on) the <HT> character, whilst others may just ignore it, or replace it with a space character.  

RE: QR code for username and password (LogIn Barcode)

DansDadUK - I can't see how this data "... will be unique to the language in which the Barcode printing....

Some applications (e.g. NotePad) will honour (i.e. interpret and act on) the <HT> character, whilst others may just ignore it, or replace it with a space character.

That is one very clear example of how an application may or may not honor the input text values as expected.   

Also I have already given examples above of how different languages 'want' to see certain text values represented in order to interpret them correctly.

Some 'want' to see TAB 'natively' input as CHR(9) and other languages will 'want' to see a TAB input as something else like: /t or <HT>

Yes, the application (code written in a specific language) can be created to 'interpret' representations other than its 'native' interpretation, but when the original poster was talking about 'CODE', it can make a difference.

JRB-Bldr
 

RE: QR code for username and password (LogIn Barcode)

jrbbldr:

I think that we're saying more-or-less the same thing, but from different angles.

Your references to CHR(9), /t, and <HT> are merely some examples of how the user may represent a Horizontal Tab character as input to different applications (although the examples are primarily those used within common source programming languages).

My references to interpretation were to how the raw Horizontal Tab character (and other non-graphic control-code characters) were treated on input to a receiving application (not usually a source programming language).


In almost all of the common coded-character-sets (e.g. ISO-646 ASCII, ISO-8859-1 Latin-1, UTF-8) that I'm aware of, code-point 9 (hexadecimal 0x09) represents the horizontal tab control-code character.

RE: QR code for username and password (LogIn Barcode)

In one of the early posts, zks asks "I know that I need to use ASCII key code for TAB, but I can not make it".

So perhaps we've been complicating the issue with some of our responses.

Assuming that the author is using a  modern Windows system, then inputting a <HT> character between username and password strings directly into the input text box, on a displayed web page, of the online free code generator http://createqrcode.appspot.com/ referred to by zks, can easily be achieved as follows:

- Make sure that NumLock is off.

- Hold down the Alt key.

- On the Numeric pad (not on the main keyboard), type in the characters 009 (that is, zero, zero, nine).


I'm still not sure about how the question author is going to use the generated bar-code; unanswered questions include:

(a) What does the bar-code scanner pass the decoded value to?
Most scanners & systems can be set up so that the input is sent to an application (e.g. NotePad), but I can't see how NotePad would help an 'auto-login'.

(b) Would the encoded value not also need to be terminated by something which emulated the 'Enter' key?

RE: QR code for username and password (LogIn Barcode)

(OP)
Wow....

I was not expecting that this will be so provocated, and I apreciated all your help. I did all of this comination (text entries) and I create all this QR codes, to be used for auto log in in to my email account. (If this works we can use them for all auto log ins in any account that user name and password are required:

at:
http://createqrcode.appspot.com/

1 text input: username~009password
no success

2 text input: username~d009password
no success

3 text input: username + ~d009 + password
no success

4 text input: username<HT>d009password
no success

5 text input: username + 0x09 + password
no success

6 text input: username$Ipassword$M
(code 39 Barcode: <TAB> is represented as $I and the Enter key is a Carriage Return, represented as a $M)
no success

no success.... WHAT ELSE!@?


So, this is the final deal: You want to use you email account. You dont want to write username and password in to the log in screen. So, using a barcode reader (I have Symbol DS6707) you scan the QR code (or other one: 128, Matrix, Code39... that you create using free generator (http://createqrcode.appspot.com/), you will autolog in to your email account.

The issue is HOW TO ENCODE THE TAB that We use between username and password entry!?!??

Thanks!
  

RE: QR code for username and password (LogIn Barcode)

You want to use you email account. You don't want to write username and password in to the log in screen

Since carrying around a barcode and barcode reader seems like a royal pain to me, I just store my email login credentials within the workstation's Outlook (it is only accessible when I have logged myself into the workstation's Windows) and then I don't have to type anything in.

Also, while we have been focusing on your request to get the TAB as part of your Username/Password entry, the more likely encountered delineator between the Username and Password would be a Carriage Return with or without the Line Feed (CrLf) like would be represented by pressing the Enter key on the keyboard.

Here is one way that I got around the GUI data entry problem of entering John TAB Doe into the following barcode generating application:  
    123 Barcode Maker
    http://www.123barcodemaker.com/products.htm

I used MS Word (or Notepad) and entered the desired text
     John    Doe  <a TAB was typed between the words>
I then copied the whole string and pasted it into the text entry field of the application's GUI, selected the barcode as Code 39 Extended and hit Create - voila! the barcode was generated.

Good Luck,
JRB-Bldr
 

RE: QR code for username and password (LogIn Barcode)

Between us, jrbbldr and I have described several different methods of getting a Horizontal Tab (hexadecimal 09) character as part of the text input to a bar-code generator.

The two bar-codes which I posted as attachments DEFINITELY include  a <HT> character between the two strings, although they aren't terminated with <CR> or <LF> control-code characters.


I don't think that the issue is how to generate a <HT> character.

Instead, it is probably (almost certainly) something to do with one of the following:

- You are assuming that the scanner output will be 'sent' to the login text boxes; is this the case?
Does anything appear in those boxes when you scan a bar-code?

- How is your target application (an unspecified email client) supposed to interpret the output from the scanner, especially control-code characters?

- Perhaps the scanner itself is stripping out control code characters?

RE: QR code for username and password (LogIn Barcode)

(OP)
DansDadUK,
 you are right. I accept and I tested, all your advices, but non of them filled the login text boxes correctly (username, JUMP(TAB), password, ENTER). Maybe the scanner that I'm using is not setup to recognize control code characters. I'll recheck that today and I will repost any new conclusions.

When I scan the qr codes, the data info (text) like ( username~009password: username~d009password: username + ~d009 + password : username<HT>d009password
: username + 0x09 + password ...etc)
 all comes in to the username textbox only. The control code for the TAB (horisontal TAB) is not recognizable, and full text is read and post only in to the username textbox.

Whatsoever, Thanks a lot. I will continued to search for a solution for this idea (QR for autologin). Good luck to all of you, also!  

RE: QR code for username and password (LogIn Barcode)

When I scan the qr codes, the data info (text) like ( username~009password: username~d009password: username + ~d009 + password : username<HT>d009password
: username + 0x09 + password ...etc)
 all comes in to the username textbox only


What happens if you read that same data into a blank MS Word or Notepad document?

You should be able to determine if a TAB exists between the words - both visually and by moving your cursor from letter to letter and on to the next word.  

If visually there is a gap between the words and, on moving the cursor, it 'jumps' across the gap, the TAB exists within the data that was Read and was delivered by the Reader.

If that were the case, then it is the recipient Application that is not behaving as you want.

If the TAB does not exist in the Word or Notepad document, then the next suspect would be the Reader and/or its configuration (as I suggested a good ways above).

And finally, assuming that you can confirm that the Reader is working as needed, then it would be the barcode itself and/or how its printing application works.

Good Luck,
JRB-Bldr


 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close