create account

Suggestion for key padding for EasyEncrypt Application by edetebenezer

View this thread on: hive.blogpeakd.comecency.com
· @edetebenezer · (edited)
$0.19
Suggestion for key padding for EasyEncrypt Application
![icons8_Secure_48px.png](https://cdn.steemitimages.com/DQmXhpphdoEnmQy6R2gygfqttFsTGJqtt182d7rHfds4qAh/icons8_Secure_48px.png)

#### Repository
https://github.com/officialhord/EasyEncrypt

#### Components
"EasyEncrypt is a desktop offline application meant to provide encryption and decryption services to users, this is done with a key chosen by the sender which must be used by the receiver before the encrypted message can be decoded.""
[-source](https://steemit.com/utopian-io/@official-hord/open-source-project-easyencode-the-offline-encryption-decryption-application)

#### Proposal Description

1. Padding of the key entered by the user .

For the easyencryption application, there exist two encryption techniques (AES and DES) which one can use and for each of them, the required key length is - 16 and 8 characters respectively which is stated explictly when a user clicks on the technique he intends to use.
If the user doesnt enter a key to the required length, an error is shown .

![easyEncryptError.PNG](https://cdn.steemitimages.com/DQmWh6Qf6fv2USRiQWt9cVLBMpZpnZGRp2qcSNujj98z1XM/easyEncryptError.PNG)

My suggestion will be to add a padding algorithm that will add space characters (" ") to the key inorder to make it up to the required length.

### How to achieve my above suggestion
While going through the code made available by the developer - a check should be placed when the user clicks either the encrpyt or decrypt button for the entered length of the key and if it doesnt match up to the expected length, spaces should be appended to the key.

i.e 

```java
private String checkKeyLength(String key, String expectedKeyLength){
	if(key.length < expectedKeyLength){
		for(int i = key.length ; I <= expectedKeyLength ; i++){
			key+=" "; // key = key + " ";
		}
	}
	return key;
}
```

#### Benefits
The above suggestion will be beneficial to the user of the application in helping them enter a key of any length which can be easily remembered than entering a 16 character key which they can hardly remember and there is no need to encrypt if you will end up forgetting the key and loosing your information.

#### GitHub Account
https://github.com/generalkolo
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 107 others
properties (23)
authoredetebenezer
permlinksuggestion-for-key-padding-for-easyencrypt-application
categoryutopian-io
json_metadata{"tags":["utopian-io","suggestion","zappl","steemit","steemsteem"],"image":["https://cdn.steemitimages.com/DQmXhpphdoEnmQy6R2gygfqttFsTGJqtt182d7rHfds4qAh/icons8_Secure_48px.png","https://cdn.steemitimages.com/DQmWh6Qf6fv2USRiQWt9cVLBMpZpnZGRp2qcSNujj98z1XM/easyEncryptError.PNG"],"links":["https://github.com/officialhord/EasyEncrypt","https://steemit.com/utopian-io/@official-hord/open-source-project-easyencode-the-offline-encryption-decryption-application","https://github.com/generalkolo"],"app":"steemit/0.1","format":"markdown"}
created2018-08-01 11:48:15
last_update2018-08-01 12:09:24
depth0
children1
last_payout2018-08-08 11:48:15
cashout_time1969-12-31 23:59:59
total_payout_value0.191 HBD
curator_payout_value0.001 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,183
author_reputation11,731,914,898,386
root_title"Suggestion for key padding for EasyEncrypt Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id66,750,320
net_rshares114,490,473,488
author_curate_reward""
vote details (171)
@tykee ·
$0.03
Hello @edetebenezer, Thank you for contributing through Utopian.

Sorry! Your contribution cannot be reviewed because the project repository is on [Utopian Blacklisted Repos](https://docs.google.com/spreadsheets/d/1q49j3mjjJVwqxRUdX0sqEApV7mAVil-K-OS-lKlFP_Y/edit#gid=0) 

Endeavor to check to avoid similar thing in your next contribution.

Thank you!!!

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
👍  ,
properties (23)
authortykee
permlinkre-edetebenezer-suggestion-for-key-padding-for-easyencrypt-application-20180802t205134467z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["edetebenezer"],"links":["https://docs.google.com/spreadsheets/d/1q49j3mjjJVwqxRUdX0sqEApV7mAVil-K-OS-lKlFP_Y/edit#gid=0","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-08-02 20:51:36
last_update2018-08-02 20:51:36
depth1
children0
last_payout2018-08-09 20:51:36
cashout_time1969-12-31 23:59:59
total_payout_value0.022 HBD
curator_payout_value0.005 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length524
author_reputation233,202,435,251,808
root_title"Suggestion for key padding for EasyEncrypt Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id66,917,290
net_rshares17,357,960,160
author_curate_reward""
vote details (2)