1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Activation Key Storage Utility

Discussion in 'Programming & Webmastering' started by Kreij, Aug 27, 2010.

  1. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    6,185 (2.21/day)
    Thanks Received:
    3,619
    Location:
    Charleston, SC
    It looks good Kreij! I see you have put a lot of time into this project. :toast: I'd like to make a small suggestion.. I would put a button above on the right side of the DataGrid to turn off/on allowupdate, allowDelete, and AllowAddNew. So, when someone is scrolling through there keys they don't accidently change something. I would add a messagebox or MsgBox to inform the user they enabled or disabled user changes inside the DataGrid as well. :toast:

    Oh and I know you know this, but I'll say it for anyone here to learn. You can create a click event to the "Commit" button to enable those settings and disable once the new save data has been saved. You can also do more stuff like change the DataGrid OFF/On button text to red when it's off and green when it's on. This is just a good visual notification for the user.

    EDIT: I said Save button.. I meant the Commit button.. :banghead:

    Also, I noticed whenever you type directly into the DataGrid then change rows then back it crashes the app with an unhandled exception. See Below.

    Code:
    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Key_Z.Form1.passwordsDataGridView_CellClick(Object sender, DataGridViewCellEventArgs e)
       at System.Windows.Forms.DataGridView.OnCellClick(DataGridViewCellEventArgs e)
       at System.Windows.Forms.DataGridView.OnMouseClick(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.DataGridView.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    I would turn off the allowAddNew until the user clicked, "Commit" or wrap the code in a, "try... catch". :toast:
     
    Last edited: Aug 4, 2011
    Crunching for Team TPU
  2. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    18,590 (4.50/day)
    Thanks Received:
    5,072
    Location:
    Florida
    bumping because i refuse to let this die. Its incredibly useful and i use it to store everything. I wont stop pestering until its done.
     
    10 Year Member at TPU More than 25k PPD
  3. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    Okay, Sol. I get back to work on it.
    It's been awhile since I looked at it, so it will take me a little while to refresh the code in my brain. :D
    I'll start going backward through this thread for problems and suggestions.
     
    Solaris17 says thanks.
  4. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    18,590 (4.50/day)
    Thanks Received:
    5,072
    Location:
    Florida
    you have no idea how much I love you right now. I had half a mind to make a brat and smear it all over my no no spots. This program is literally gold and is the most secure one I have ever come across it is ABSOLUTE peace of mind when I use it. Not to mention the girls.

    "Bitches love when i keep my passwords in Key-Z"
     
    grunt_408 says thanks.
    10 Year Member at TPU More than 25k PPD
  5. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    Okay, fixed the issue that Mindweaver found by redoing the way the key section works.

    The password tab was intended to auto-generate strong passwords. The fact that it stores the passwords separately from the keys seems a little redundant. Would it be fortuitous to have it so if you generate a password and "commit" it that it stores it (and the group and description) in the keys section on the first tab?
    There is no difference (as far as the program is concerned) between a key and a password and this would also give you the ability to add a comment if you so choose.
     
    Mindweaver says thanks.
  6. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    Okay, here is a new version with some changes. Let me know what you think.
    I compiled against .Net 4.0, so you need that.
    I've got a bit of a version mismatch thing going here, so ...
    BACKUP UP YOUR EXISTING KEY FILE BEFORE TESTING !!!
     

    Attached Files:

    Solaris17 says thanks.
  7. VulkanBros

    VulkanBros

    Joined:
    Jan 31, 2005
    Messages:
    1,558 (0.36/day)
    Thanks Received:
    488
    Location:
    The Pico Mundo Grill
    minor thing - under Help -> Content -> Solaris Utility DVD - link dosent work
    (Solaris´s website is down ???)
     
    Kreij says thanks.
    10 Year Member at TPU Crunching for Team TPU
  8. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    It's still his old domain name. I'll fix that in next version.

    That didn't work. SOLARIS WHAT'S YOUR DOMAIN NOW (and is it up?)
     
    VulkanBros says thanks.
  9. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,983 (3.26/day)
    Thanks Received:
    5,288
    Location:
    Hi! I'm from the Internet
    Well Kreij maybe I am just a dumbass but is there a way to save like user names and passwords for different sites and such? All I see is where you can put List under password with just the app name and password with no place for the username. For example if I wanted to save the password and user name for tpu in it. Here's a screenshot of what it has.

    [​IMG]



    Here's A screenshot of what my feeble brain thinks should be there.



    [​IMG]
     
    Last edited: Dec 17, 2011
    Kreij says thanks.
    Crunching for Team TPU
  10. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,983 (3.26/day)
    Thanks Received:
    5,288
    Location:
    Hi! I'm from the Internet
    Also is it normal for every time I open to program I get this warning?


    [​IMG]
     
    Crunching for Team TPU
  11. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    18,590 (4.50/day)
    Thanks Received:
    5,072
    Location:
    Florida
    sudvd.net and it is up. its under construction. I wanted to make it more webstandard friendly so im starting from scratch. but the disks are still their. Thanks
     
    Kreij says thanks.
    10 Year Member at TPU More than 25k PPD
  12. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    @MadShots : Thank you. There is nothing for usernames at the moment because no one ever brought it up and I never thought of it. I will put a lot of thought into a good implementation for that.
    As for the security warning, that's Windows doing it's thing. You can uncheck the checkbox and it won't ask again, but I'm not going to bother getting "verified" as a publisher through Microsoft by getting a digital signature.

    @Sol : Thank buddy.
     
  13. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,983 (3.26/day)
    Thanks Received:
    5,288
    Location:
    Hi! I'm from the Internet
    Cool thanks maybe I am not such a dumbass and missed something after all. Yes there is no need to bother with the verification. I'll just put a check in the box.
     
    Crunching for Team TPU
  14. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    No Mad, you're not a dumbass. lol You pointed out something really important for the password section.

    Since application keys do not need a username, do you think that combining the username and password in the "key" column (for password entries) in some manner would work well?
     
  15. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,983 (3.26/day)
    Thanks Received:
    5,288
    Location:
    Hi! I'm from the Internet
    That should work or add a column for the user name like I did with the second pic if its not to much trouble. I think the extra column would be used more than not as we all have accounts to multiple websites that require a user name and password.
     
    Crunching for Team TPU
  16. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    Yes, but if you are entering activation keys that column is meaningless and would still be there.
     
  17. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,983 (3.26/day)
    Thanks Received:
    5,288
    Location:
    Hi! I'm from the Internet
    I see your point it would just be a blank space for that entry
     
    Crunching for Team TPU
  18. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    What if when you hovered over the password a tooltip showed you the user name?
    That would keep things a little more private for the casual observer.
     
    Solaris17 and ThE_MaD_ShOt say thanks.
  19. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,983 (3.26/day)
    Thanks Received:
    5,288
    Location:
    Hi! I'm from the Internet
    That would be cool. I like that ideal.
     
    Crunching for Team TPU
  20. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    You still on Mad? I thought I was the only insomniac in P&W. lol
    I'll put that in the next build and we can test it to see what people like.
    This has got to be good for the users or it's just another PITA appp. :)
     
  21. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    6,185 (2.21/day)
    Thanks Received:
    3,619
    Location:
    Charleston, SC
    Looks good Kreij. I did notice one thing and it's small and adds the extra polish. When you save and get the "Access Password and PIN" dialogue box needs to be updated with your program Icon and also the description header cuts off "Access Password and PIN". It looks like "Access Password and PI...". :toast: Hope this helps. :toast:

    [​IMG]
     
    Last edited: Dec 18, 2011
    Crunching for Team TPU
  22. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    18,590 (4.50/day)
    Thanks Received:
    5,072
    Location:
    Florida
    Crashed when trying to load old kzf file. error is as follows.

    Code:
    ************** Exception Text **************
    System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Key_Z.Form1.DecryptData(String filename)
       at Key_Z.Form1.openToolStripMenuItem_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Key-Z
        Assembly Version: 0.0.7.0
        Win32 Version: 0.0.7.0
        CodeBase: file:///C:/Users/Solaris17/Downloads/Key-Z_0_0_7.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.235 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.236 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    
    
    
     
    10 Year Member at TPU More than 25k PPD
  23. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    Thanks Mindweaver, I made the window a little bigger so it won't do that.

    Looking into the exception, Sol.
     
    Solaris17 says thanks.
  24. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    18,590 (4.50/day)
    Thanks Received:
    5,072
    Location:
    Florida
    Im excited I love this app. also for the exception mayeb its because of the way it imports? diffirent number of columns or maybe its supposed to output to a specific tab # and when you changed them its now out of order?
     
    10 Year Member at TPU More than 25k PPD
  25. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (3.86/day)
    Thanks Received:
    5,632
    Location:
    Cheeseland (Wisconsin, USA)
    Try this one Sol.
     

    Attached Files:

    Solaris17 says thanks.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)