Commit Graph

41 Commits

Author SHA1 Message Date
surtur 6143526568
chore: hide keygen label when cleaning inputs 2021-01-12 14:41:16 +01:00
surtur 19ac664b56
feat: introduce a non-blocking keygen
* ui can be used normally even while keygen is running; the only thing
  that the program will refuse to do is spin up another instance of
  keygen, of which the user will kindly be informed
* this required some async-await fiddling and running genprimes_handler
  as a Task
2021-01-12 14:37:17 +01:00
citizen-VM a6b87453ff
merge: finally bring in 'feature-ng' greatness
* this merge concludes the works on a next-gen (ng) version of this
program (kry-0x04 - dsa).
* added
  * keygen capabilities (from kry-0x03)
  * sha256sum autocompute on msg text changed
* fixed
  * signature creation
  * signature verification
  * zip/unzip functionality
  * clear_all function
* further included
  * design and ux enhancements
  * code cleanup for improved legibility
  * design-logic decoupling

* feature-ng: (25 commits)
  chore: add "keygen running" indicator label
  feat: add the option to save keys to a folder
  chore: add Rsa.cs for keygen capabilities
  feat: unzip functioning correctly
  refactor: get rid of the using
  chore: clear msgbox first, sha256sumbox after that
  chore: zip creation parameter tweaks
  chore: smarten do_zip(); use disposable workirs
  feat: legibility++; bugginess-- in do_zip()
  chore: delete the folder after the fact
  chore: creating a zip with at least the msg inside
  chore: refactor do_zip()
  chore: rm unused method
  chore: show sha256sum even for an empty string
  fix: handle the label when loading a new message
  chore: refactor LogicHandler
  feat: refactor do_verify()
  feat: autocompute sha on text changed
  chore: rm border style handling
  chore: rm checksum loading capability + renames
  ...
2021-01-11 03:55:03 +01:00
citizen-VM d1a3732817
merge: bring in 'add-rsa-keygen-capabilities'
merging into feature-ng

* add-rsa-keygen-capabilities:
  chore: add "keygen running" indicator label
  feat: add the option to save keys to a folder
  chore: add Rsa.cs for keygen capabilities
2021-01-11 03:52:08 +01:00
citizen-VM d7ad946c35
chore: add "keygen running" indicator label 2021-01-11 03:50:56 +01:00
citizen-VM 65b3376d94
feat: add the option to save keys to a folder
* user runs keygen
* selects a folder that will home the keys
* keys are generated and saved to a predefined location
* set all possible fields and methods as private
2021-01-11 03:36:34 +01:00
citizen-VM da04346f26
chore: add Rsa.cs for keygen capabilities
* as of now it's not passing the keys anywhere
2021-01-11 03:30:11 +01:00
citizen-VM 041f443adb
merge: feature-rework-design-and-functionality
* feature-rework-design-and-functionality:
  feat: unzip functioning correctly
  refactor: get rid of the using
  chore: clear msgbox first, sha256sumbox after that
  chore: zip creation parameter tweaks
  chore: smarten do_zip(); use disposable workirs
  feat: legibility++; bugginess-- in do_zip()
  chore: delete the folder after the fact
  chore: creating a zip with at least the msg inside
  chore: refactor do_zip()
  chore: rm unused method
  chore: show sha256sum even for an empty string
  fix: handle the label when loading a new message
  chore: refactor LogicHandler
  feat: refactor do_verify()
  feat: autocompute sha on text changed
  chore: rm border style handling
  chore: rm checksum loading capability + renames
2021-01-11 02:23:57 +01:00
citizen-VM 0ce2735389
feat: unzip functioning correctly
* create a subdir in the user chosen path with the name of the zipfile
  (without extension, assuming it's got one)
2021-01-11 02:16:49 +01:00
citizen-VM bee1f1ff5d
refactor: get rid of the using 2021-01-11 02:08:03 +01:00
citizen-VM 55875a4bbb
chore: clear msgbox first, sha256sumbox after that
* ..the old "on text changed" story
2021-01-11 02:01:38 +01:00
citizen-VM 5c18b89e36
chore: zip creation parameter tweaks 2021-01-11 01:56:03 +01:00
citizen-VM 58410263b3
chore: smarten do_zip(); use disposable workirs
* also force delete the workdir path after the fact
2021-01-11 01:46:12 +01:00
citizen-VM 70d50d2d82
feat: legibility++; bugginess-- in do_zip()
* added a couple of checks and messageboxes informing the user what's
going on
* properly adding the sign file to the zip now
* reworded some messages
2021-01-11 01:16:16 +01:00
citizen-VM 7e871d6533
chore: delete the folder after the fact 2021-01-11 00:38:34 +01:00
citizen-VM 9319d09a63
chore: creating a zip with at least the msg inside 2021-01-11 00:32:46 +01:00
citizen-VM 1c8b2f8e23
chore: refactor do_zip() 2021-01-11 00:26:13 +01:00
citizen-VM 4169e3f132
chore: rm unused method 2021-01-11 00:05:01 +01:00
citizen-VM 2454a8d54f
chore: show sha256sum even for an empty string 2021-01-11 00:03:42 +01:00
citizen-VM f98cf80e27
fix: handle the label when loading a new message
* msg changed but not saved label is shown on text changed but since
we're loading a new message we don't care about such information
2021-01-10 23:54:31 +01:00
citizen-VM be808f1d72
chore: refactor LogicHandler
* replace occurences of using(...){} with declarations
* indentation
* rename dlggg
2021-01-10 23:38:31 +01:00
citizen-VM 769123a084
feat: refactor do_verify()
* bool proceed for state-checking
* key boxes check in do_verify_wrapper
* added messageboxes informing user of current progress
2021-01-10 23:05:04 +01:00
citizen-VM 8d5c8e59fb
feat: autocompute sha on text changed
* rm button for manual hash computation
* add method for computing hash from string
* add method for deciding whether hash of the msg in msg box equals hash
of msg in the file (if loaded) and show a warning label when msg changes
2021-01-10 21:58:48 +01:00
citizen-VM 4d4c756c6a
chore: rm border style handling 2021-01-10 20:45:34 +01:00
citizen-VM 8652beea61
chore: rm checksum loading capability + renames 2021-01-10 20:38:16 +01:00
citizen-VM 5ebd504357
merge: bring in decouple-logic-from-design changes
* refs/remotes/origin/feature-ng:
  feat: move form logic to LogicHandler methods
  chore: rm unused usings (right?)
  refactor: meaningful button click method names
  refactor: give textboxes meaningful names
  chore: move code methods to Dsapls.cs vol.0
2021-01-10 18:36:31 +01:00
citizen-VM ca29cb2a5e
chore: target v4.8;allow unsafe;prefer 64bit
* also rm useless assembly copyright info
2021-01-10 18:24:39 +01:00
citizen-VM 7aeeba6adb
feat: move form logic to LogicHandler methods 2021-01-10 18:09:48 +01:00
citizen-VM 245a2ada9c
chore: rm unused usings (right?) 2021-01-10 17:25:32 +01:00
citizen-VM a4f97ec6ec
refactor: meaningful button click method names 2021-01-10 17:25:31 +01:00
citizen-VM 4d05c93e79
refactor: give textboxes meaningful names 2021-01-10 17:25:20 +01:00
citizen-VM be65ffee46
chore: move code methods to Dsapls.cs vol.0 2021-01-10 17:12:49 +01:00
surtur cef965cbd6
chore: fix logic + add empty field checking
* saving the msg, not the checksum itself
2021-01-10 00:46:28 +01:00
citizen ae6d32dd75
unzipping working correctly 2020-01-27 06:00:26 +01:00
citizen e32035955e
minor fixes to input parsing and zipping 2020-01-27 04:44:19 +01:00
citizen a9c7f0b04d
using smaller keys sha256sums finally match
* sign/verify routine worked out (shout-out to js)
2019-12-18 13:44:57 +01:00
citizen a6946d3069
added .gitignore 2019-12-18 11:27:34 +01:00
citizen 9a6317b1f7
zip/unzip functionality [WIP] 2019-12-18 11:26:59 +01:00
citizen f1f176772d
corrected key format 2019-12-18 10:33:25 +01:00
citizen e2f4359150
application layout + functionality [WIP]
* reading/writing {msg,sha256sum}
* loading {priv,pub}keys
2019-12-18 10:27:34 +01:00
surtur 617a856dfb
initial commit 2019-12-18 06:03:49 +01:00