Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
benricok committed Oct 28, 2021
1 parent 833412a commit faff61d
Show file tree
Hide file tree
Showing 9 changed files with 536 additions and 75 deletions.
117 changes: 76 additions & 41 deletions Phase 2/Help.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ object frmHelp: TfrmHelp
Top = 52
Width = 492
Height = 381
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Tahoma'
Font.Style = []
Lines.Strings = (
'# Delphi PAT grade 11'
'Topic: Encryption and Decryption'
Expand All @@ -69,61 +74,91 @@ object frmHelp: TfrmHelp
''
'2. Uses the vigenere algorithm for encryption and decryption'
''
'## How to use the tool'
'1. Open the endecryptToool.exe application.'
'2. The Help button will show you this message.'
'## How to use the tool (User)'
'1. Open the PAT2-21_p.exe application.'

'3. There are two modes to for processing the message. Encrypting' +
' and Decrypting.'
''
'## Encryption'
'2. If you have your login credentials, please fill it in and pre' +
'ss the login button.'
' - You can check your password by clicking the eye button'

'1. Paste your message in the box below the label "Input" or clic' +
'k the button "Import from file" to '
'load a file.'
'2. Switch to the second tab labeled "key" by clicking on it.'
' Else contact your HR department or the administrator to crea' +
'te one for you'

'3. A key will be generated automatically each time you open the ' +
'application. You can select '
'3. After your login was successful, the main appliaction window ' +
'will be opened.'

'what character my be used by the genarator and click the button ' +
'called "Genarate" to make a '
'new key.'
'4. Your first see your personal information, you can of course c' +
'hange this and'
' update your information by clicking the update button'

'4. Switch back to the first tab and click on the button labeled ' +
'"Encrypt".'
'5. You also have the option to change you password by clicking t' +
'he change '
' pasword button'

'5. The encrypted message will appear in the second box underneat' +
'h the label "Output".'
'6. 2 Other tabs will also be visible to you namly '#39'Logout'#39' and '#39 +
'Report'#39

'6. A Prompt will also be displayed with the key to decrypt the m' +
'essage.'
'7. The logout tab logs you out of your user account and resets t' +
'he application'

'6. If you'#39'd like to save it directly to a text file, you can cli' +
'ck on the button labled "Export to file" '
'and provide the path to the file in the dialog.'
'8.The report tab alllows you to create a report consiting of a t' +
'itle, message and'
' a list of users who were involved'

'9. The help button in the bottom right corner opens up this read' +
'me file. '
''
'## Decryption'
'## How to use the tool (HR)'
'1. Open the PAT2-21_p.exe application.'

'2. If you have your login credentials, please fill it in and pre' +
'ss the login button.'
' - You can check your password by clicking the eye button'

' Else contact your HR colleague or the administrator to creat' +
'e one for you'

'3. After your login was successful, the main appliaction window ' +
'will be opened.'

'1. Paste your encrypted message in the box below the label "Inpu' +
't" or click the button "Import '
'from file" to load a file.'
'2. Switch to the second tab labeled "key" by clicking on it.'
'4. Your first see your personal information, you can of course c' +
'hange this and'
' update your information by clicking the update button'

'3. A key will be generated automatically each time you open the ' +
'application. Enter the key '
'provided with the encrypted message into the editbox.'
'5. You also have the option to change you password by clicking t' +
'he change '
' pasword button'

'4. Switch back to the first tab and click on the button labeled ' +
'"Decrypt".'
'6. 4 Other tabs will also be visible to you namly '#39'Logout'#39', '#39'Rep' +
'ort'#39', '#39'User '
'management'#39
' and '#39'View Reports'#39

'5. The decrypted message will appear in the second box underneat' +
'h the label "Output".'
'7. The logout tab logs you out of your user account and resets t' +
'he application'

'6. If you'#39'd like to save it directly to a text file, you can cli' +
'ck on the button labled "Export to file" '
'and provide the path to the file in the dialog.'
'')
'8.The report tab alllows you to create a report consiting of a t' +
'itle, message and'
' a list of users who were involved'

'9. The View Reports tab allows users part of the HR group to vie' +
'w user '
' submited Reports'

'10. The user management tab allows users part of the HR group to' +
' add, remove'
' and view all users'#39' information '

'11. The help button in the bottom right corner opens up this rea' +
'dme file. '
''

'If you found a bug in this application, please report it to this' +
' project'#39's github '
'repo at: https://github.com/benricok/PAT-2021'
''
'Enjoy! ')
ParentFont = False
ScrollBars = ssVertical
TabOrder = 0
end
Expand Down
2 changes: 1 addition & 1 deletion Phase 2/Main.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object frmMain: TfrmMain
Top = 0
Width = 806
Height = 460
ActivePage = tabUserManagement
ActivePage = tabDash
TabOrder = 0
OnChange = tbcMainChange
object tabDash: TTabSheet
Expand Down
50 changes: 50 additions & 0 deletions Phase 2/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Delphi PAT grade 11
Topic: Encryption and Decryption
Algorithm: ELFHashing
Created by Benrico Krog
Source released under AGPL-3.0 licence

2. Uses the vigenere algorithm for encryption and decryption

## How to use the tool (User)
1. Open the PAT2-21_p.exe application.
2. If you have your login credentials, please fill it in and press the login button.
- You can check your password by clicking the eye button
Else contact your HR department or the administrator to create one for you
3. After your login was successful, the main appliaction window will be opened.
4. Your first see your personal information, you can of course change this and
update your information by clicking the update button
5. You also have the option to change you password by clicking the change
pasword button
6. 2 Other tabs will also be visible to you namly 'Logout' and 'Report'
7. The logout tab logs you out of your user account and resets the application
8.The report tab alllows you to create a report consiting of a title, message and
a list of users who were involved
9. The help button in the bottom right corner opens up this readme file.

## How to use the tool (HR)
1. Open the PAT2-21_p.exe application.
2. If you have your login credentials, please fill it in and press the login button.
- You can check your password by clicking the eye button
Else contact your HR colleague or the administrator to create one for you
3. After your login was successful, the main appliaction window will be opened.
4. Your first see your personal information, you can of course change this and
update your information by clicking the update button
5. You also have the option to change you password by clicking the change
pasword button
6. 4 Other tabs will also be visible to you namly 'Logout', 'Report', 'User
management'
and 'View Reports'
7. The logout tab logs you out of your user account and resets the application
8.The report tab alllows you to create a report consiting of a title, message and
a list of users who were involved
9. The View Reports tab allows users part of the HR group to view user
submited Reports
10. The user management tab allows users part of the HR group to add, remove
and view all users' information
11. The help button in the bottom right corner opens up this readme file.

If you found a bug in this application, please report it to this project's github
repo at: https://github.com/benricok/PAT-2021

Enjoy!
Binary file modified Phase 2/Win32/Debug/PAT2021_p.exe
Binary file not shown.
1 change: 1 addition & 0 deletions Phase 2/Win32/Debug/event.log
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@
2021-10-28 01:34:09 PM;[ Info ];User admin logged in.
2021-10-28 01:35:12 PM;[ Warning ];Invalid password by user admin
2021-10-28 01:35:17 PM;[ Info ];User admin logged in.
2021-10-28 02:05:47 PM;[ Info ];User admin logged in.
131 changes: 131 additions & 0 deletions Phase 2/__history/Help.dfm.~6~
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
object frmHelp: TfrmHelp
Left = 0
Top = 0
BorderStyle = bsDialog
Caption = 'Help'
ClientHeight = 493
ClientWidth = 510
Color = clBtnFace
DefaultMonitor = dmPrimary
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
FormStyle = fsStayOnTop
OldCreateOrder = False
Position = poMainFormCenter
PixelsPerInch = 96
TextHeight = 13
object pnlToolBar: TPanel
Left = 0
Top = 456
Width = 510
Height = 37
Align = alBottom
BevelOuter = bvNone
TabOrder = 0
object btnOK: TBitBtn
Left = 425
Top = 8
Width = 75
Height = 25
Kind = bkOK
NumGlyphs = 2
TabOrder = 0
OnClick = btnOKClick
end
end
object pnlHelp: TPanel
Left = 0
Top = 0
Width = 510
Height = 449
TabOrder = 1
object lblHelpHeading: TLabel
Left = 208
Top = 24
Width = 82
Height = 22
Caption = 'README'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -19
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
end
object memHelp: TMemo
Left = 8
Top = 52
Width = 492
Height = 381
Lines.Strings = (
'# Delphi PAT grade 11'
'Topic: Encryption and Decryption'
'Algorithm: ELFHashing'
'Created by Benrico Krog'
'Source released under AGPL-3.0 licence'
''
'2. Uses the vigenere algorithm for encryption and decryption'
''
'## How to use the tool'
'1. Open the endecryptToool.exe application.'
'2. The Help button will show you this message.'

'3. There are two modes to for processing the message. Encrypting' +
' and Decrypting.'
''
'## Encryption'

'1. Paste your message in the box below the label "Input" or clic' +
'k the button "Import from file" to '
'load a file.'
'2. Switch to the second tab labeled "key" by clicking on it.'

'3. A key will be generated automatically each time you open the ' +
'application. You can select '

'what character my be used by the genarator and click the button ' +
'called "Genarate" to make a '
'new key.'

'4. Switch back to the first tab and click on the button labeled ' +
'"Encrypt".'

'5. The encrypted message will appear in the second box underneat' +
'h the label "Output".'

'6. A Prompt will also be displayed with the key to decrypt the m' +
'essage.'

'6. If you'#39'd like to save it directly to a text file, you can cli' +
'ck on the button labled "Export to file" '
'and provide the path to the file in the dialog.'
''
'## Decryption'

'1. Paste your encrypted message in the box below the label "Inpu' +
't" or click the button "Import '
'from file" to load a file.'
'2. Switch to the second tab labeled "key" by clicking on it.'

'3. A key will be generated automatically each time you open the ' +
'application. Enter the key '
'provided with the encrypted message into the editbox.'

'4. Switch back to the first tab and click on the button labeled ' +
'"Decrypt".'

'5. The decrypted message will appear in the second box underneat' +
'h the label "Output".'

'6. If you'#39'd like to save it directly to a text file, you can cli' +
'ck on the button labled "Export to file" '
'and provide the path to the file in the dialog.'
'')
ScrollBars = ssVertical
TabOrder = 0
end
end
end
Loading

0 comments on commit faff61d

Please sign in to comment.