2/13/2008: New! QSale Information and News

Make comments, ask questions, or just complain about the software on this site. Or comment on any educational software.
Please note that by clicking on links that may appear in these posts that you may be leaving the Dale Harris Educational Software website and that the content of those sites is the sole resposibility of the authors of those sites.

Moderators:daleadmin, Dale Harris, Alan, Andrew

dhUser
Forum Regular
Posts:70
Joined:Tue Apr 04, 2006 6:42 pm
Location:New York
note

Post by dhUser » Wed Jul 05, 2006 4:38 pm

TimLight:

- To change the username and password:
Type ADM into the textbox (in the sales screen) and press [Enter] and the admin dialog will appear. Just change it and click [Close]

About the other comments, I'll see what i can do.

dhuser

User avatar
Dale Harris
Forum Owner
Posts:1171
Joined:Sun Dec 28, 2003 10:19 pm
Location:Chicago
Contact:

Transaction numbers

Post by Dale Harris » Wed Jul 05, 2006 4:49 pm

Transaction numbers are not a bonus but are absolutely required. I receive email about POS from all over the world and there is no place that will allow you to use any type of cash register / POS system that does not issue a sequential transaction number to each and every transaction including each sales / return receipt, opening / closing receipts, no sales, voids, and anything else that can be rung on the register.

Some countries require 4 digit rolling (9999 is followed bt 0000) transaction numbers. Some countries require 6 digit rolling transaction numbers. Some countries require a two part transaction number where the first part is the number of times the register has been closed the second part is the number of transactions since the register was last closed starting at one. For example 256-25 means that the register has been closed 255 times before and this is the 25th transaction since the register was last opened.
Dale

User avatar
Dukane
Forum Regular
Posts:147
Joined:Mon Jun 21, 2004 11:00 am

Post by Dukane » Wed Jul 05, 2006 5:02 pm

dhUser,

How do I change the password permanently? I was able to change it for one session, but when I closed the program, it didn't remember my change.

And, why doesn't the close button kill the application? I found it running 2 hours later when I thought I had terminated it.

dhUser
Forum Regular
Posts:70
Joined:Tue Apr 04, 2006 6:42 pm
Location:New York

reply

Post by dhUser » Wed Jul 05, 2006 7:53 pm

TimLight,
- In this version, it is unable to save the password. This will be corrected.

- To end the application completly, type X in the main screen's textbox or logout and press cancel.

dhuser

User avatar
Dukane
Forum Regular
Posts:147
Joined:Mon Jun 21, 2004 11:00 am

Post by Dukane » Thu Jul 06, 2006 7:08 pm

Why don't you save the passwords and transaction numbers in binary files?

dhUser
Forum Regular
Posts:70
Joined:Tue Apr 04, 2006 6:42 pm
Location:New York

reply

Post by dhUser » Thu Jul 06, 2006 7:55 pm

TimLight,
How would I do this, with Visual Basic 2005 Express Edition?

dhuser

User avatar
Dukane
Forum Regular
Posts:147
Joined:Mon Jun 21, 2004 11:00 am

Post by Dukane » Thu Jul 06, 2006 9:38 pm

Well here is an example of a quick way to write to a binary file:

Code: Select all

Imports System.IO

Private Sub SavePassword()
            Dim newPassword As String
            newPassword = Console.ReadLine()

            Dim DataStream As New FileStream("password.pwd", FileMode.Open)
            Dim PasswordWriter As New BinaryWriter(DataStream)

            PasswordWriter.Write(newPassword)

            PasswordWriter.Close()
            DataStream.Close()
End Sub
It's certainly not fool-proof since anyone who has programming knowledge could simply write a program to open the file and read the password out. But it prevents anyone who doesn't know how to do so from doing just that -- and prevents someone from "finding" the password file and opening it and simply reading it out as straight text.[/code]

User avatar
Andrew
Site Administrator
Posts:822
Joined:Sun Dec 28, 2003 3:40 pm
Location:New Zealand

Post by Andrew » Thu Jul 06, 2006 11:24 pm

I'm glad to see VB.net has not improved... [shudder]
Image
DHPOS Veteran (from v3.46, July 2002)

User avatar
Dukane
Forum Regular
Posts:147
Joined:Mon Jun 21, 2004 11:00 am

Post by Dukane » Fri Jul 07, 2006 3:23 pm

Andrew,

HAHA guess not. Although I should add the disclaimer that the code above is for 2003. I'm assuming it will also work in 2005.

dhUser
Forum Regular
Posts:70
Joined:Tue Apr 04, 2006 6:42 pm
Location:New York

reply

Post by dhUser » Fri Jul 07, 2006 4:14 pm

This is how I will do the username and password:

Edited out for security purposes

dhuser
Last edited by dhUser on Tue Jun 05, 2007 9:12 am, edited 2 times in total.
dhuser
Thanks for your support

User avatar
Dukane
Forum Regular
Posts:147
Joined:Mon Jun 21, 2004 11:00 am

Post by Dukane » Fri Jul 07, 2006 5:17 pm

But you just made it public.

User avatar
ChrisKraus
Forum Regular
Posts:351
Joined:Wed Dec 31, 2003 11:10 am
Location:Dedham, MA - U.S.A.

Post by ChrisKraus » Fri Jul 07, 2006 6:44 pm

Ouch :(
- Chris
Christopher Kraus

User avatar
Andrew
Site Administrator
Posts:822
Joined:Sun Dec 28, 2003 3:40 pm
Location:New Zealand

Post by Andrew » Fri Jul 07, 2006 8:47 pm

*hugs PHP's easy, built in string encryption*
Image
DHPOS Veteran (from v3.46, July 2002)

User avatar
ZeeMan
Forum Regular
Posts:37
Joined:Sun Dec 12, 2004 9:26 pm

Post by ZeeMan » Fri Jul 07, 2006 11:18 pm

Why not use a keyed encryption algorithim that stores the values in the registry?
I haven't used VB express 2005 for a while so here is some psudo code (it isn't very good):
On New Password:
Users enters new password.
Store new password in var newPass
Set var toEncode to var newPass
Set var encodeKey to var newPass
Encode var toEncode with encodeKey

On Logon:
User enters password.
Store password in var enteredPass
Store password in var decodeKey
Decode encoded password with decodeKey
Does entered password match decoded password?
If yes:
Open Program
If no:
Display Error
It isn't very clear but you get the meaning. This way, the only way to decode the password is to know the password.
You don't have to use any advanced encryption algorithim either. One little experiment program I wrote just converted the key and value to encode to ascii and then multiplied them by each other. Another method could be to multiply the key by some really long number that you keep a secret. As long as that number is not comprimised, you are fine.
Yet another way to encode the key is use a really complicated algorithim that does a bunch of functions using several keys that are kept a secret. Then, if somebody tries to crack the password, they don't know how long the password really is or how it was encoded.


These are just a few suggestions.

listerofsmeg
Forum Regular
Posts:21
Joined:Fri Jun 16, 2006 6:12 am

Post by listerofsmeg » Sat Jul 08, 2006 3:41 am

I can dont get to the site!

Can you host it on a file host!
PLEASE.
also, is it a EXE or still VB code?
I used to be known as the theposman!
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 148 guests