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. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    Indeed it does. Most likely because a pdf is not "text" (which this was originally targetted at) and showing the decrypted output is problematic.
    IT works fine if you do not ask for the decrypted output.
    I will ponder the solution.
     
  2. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    Use eye of newt works everytime.
     
  3. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    Eye of Newt said to rething the entire tab's function. lol

    Eye of Newt says he's open for ideas too. :p
     
  4. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    The tab should stay. Allow the box to display all sorts of diffirent formats? If not malke a warning that it only supports x file type(s)
     
  5. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    The tab will stay, the problem is the box is a TextBox. It's never going to be happy with binary data and all kind of non-printable control characters.
    It was really meant to show you files that you created by encrypting in the TextBox in the first place. It's not a file viewer for varied formats.
     
  6. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    set an extension default? that way when you hit browse it will only show the files supported by keyz of course you could modify the drop down and view all. But at that point it is implied it doesnt support other file types.
     
  7. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    Key-Z supports the encryption and decryption of any type of file, it just will barf if the contents of the file is not text if you ask for it to be displayed.
    Ponder, ponder ponder.
     
  8. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    if the file is a txt enable check box if file check shows =/= .txt grey display checkbox?
     
  9. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    I thought about that, but there are many file extensions for files that actually contain text.
    Anything that will open in notepad is text (like INI files).
    Give me a little while. I think I can make the program smart enough to "sense" a non-text file. ;)

    In the mean time, keep testing gents !! :toast:
     
    Solaris17 says thanks.
  10. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    I agree if you cant get it maybe making a "whitelist" would be easier then a blacklist.

    http://en.wikipedia.org/wiki/List_of_file_formats
     
  11. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    Smack yourself with a bratwurst until you get here. :D

    The bytes are being fed from a CryptoStream through a Decryptor and into a FileStream. I should be able to watch them and determine if the bytes are not "text" friendly.
     
    Solaris17 says thanks.
  12. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    hahaahahahaha Sorry while I was eating dry honey nut cheerios my cognitive ability seemed to get rather lax. I immediately noticed my folly my subconscious misconveyed my true thought. which was only to merely suggest that a whitlist may be more beneficial so as not to waste your most valued time and furthermore surely not an attempt to undermine your genius, though this is all a misunderstanding I do plead you not to be too vexed as im sure you can find it in your heart to forgive.



    Is that better? i dont think iv written a post that formal on here in years. Ill give this one to you. as a keepsake.
     
  13. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    rofl ... I'm have no genious, I just don't quit until it works the way I want. :D
     
    Solaris17 says thanks.
  14. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,131 (4.56/day)
    Thanks Received:
    3,795
    Location:
    Hi! I'm from the Internet
    Works like a mofo. Thanks perfect.
     
    Kreij says thanks.
    Crunching for Team TPU
  15. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    Okay, I removed the text entry area in the File and Text Encryption/Decryption tab as it's seemed kind of useless. I renamed the tab to just "File Encryption/Decryption"

    In their wisdom of basing file types on extensions (since the DOS ages) and never properly implementing or enforcing internal file type desination, some files use the first 4 bytes as a file type (like all PDFs start with %PDF), but many do not.
    I figured out a way to "sniff" the file for clues, but came to the conclusion that it would be highly inaccurate (even notepad will try to open non-text files if it's fooled).
    Therefore, I cheated.
    If you check the "View Decrypted File" CheckBox, the file will open in it's native application (if there is one), similar to double-clicking on a file in windows explorer.
    If the decrypted file is an ".exe" it will ignore the CheckBox and never run/open a file with an extension of ".exe".

    Please test at your leisure. :toast:
     

    Attached Files:

    ThE_MaD_ShOt and Solaris17 say thanks.
  16. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    Everything is working great so far man. I had a question though. I added a password with a screen name unfortunetely my DB is from an old version before the column was implimented. The SN didnt show. I ended up adding it to the comment field. Is this supposed to happen?
     
  17. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    No, it should work as designed.
    Maybe save and re-load it to see what happens?
     
  18. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    loaded it up and username is noware to be seen
     
  19. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.81/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    So you never see the tooltip with the username in it for anything?
    How about if you create a new test kzf file?
    What version was your file made in?
     
  20. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    NVM I see it now I just dont hover that long over it so I never saw it before.
     
  21. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    hey kreij do you mind if i add this to the useful software tab in my driver finder program?
     
  22. Dippyskoodlez

    Joined:
    Jul 1, 2005
    Messages:
    5,095 (1.47/day)
    Thanks Received:
    238
    Location:
    Kansas City, KS
    Would be nice to have the password and pin turn into ****'s when input, rather than plaintext. Also consider making the stars randomized, ** for one button, then * for one button, then *** for another button and such. That way the characters cant be counted via screen surfing.
     
  23. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,131 (4.56/day)
    Thanks Received:
    3,795
    Location:
    Hi! I'm from the Internet
    Now Kreij do you mind if I tweak it just a tad to suit my Add self? As in basically have it like a installed program. exe in a folder under programs and a file in that folder for the data file with a shortcut on my start menu. I just get anal about some things do I really shouldn't. Also it works great. Great work
     
    Crunching for Team TPU
  24. Dippyskoodlez

    Joined:
    Jul 1, 2005
    Messages:
    5,095 (1.47/day)
    Thanks Received:
    238
    Location:
    Kansas City, KS
    Since this app is still evolving a bit, you would probably be better off just making your own directories for it by hand. (all of those can be created to suit your needs, manually) This will also allow you to upgrade versions by just swapping the exe.
     
  25. Solaris17

    Solaris17 Creator Solaris Utility DVD

    Joined:
    Aug 16, 2005
    Messages:
    17,421 (5.09/day)
    Thanks Received:
    3,719
    Location:
    Florida
    well if you add the icon to the password-pin window this thing looks perfect.
     

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

Share This Page