Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
1.6-fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mxlgv committed Jun 27, 2020
1 parent 80bd7f6 commit 21974ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkgname=TEAtool
pkgver=1.5
pkgver=1.6
pkgrel=1
pkgdesc="Tiny algorithm encryption utility"
url="https://github.com/turbocat2001/TEAtool"
Expand Down
6 changes: 3 additions & 3 deletions TEAtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ int valid_key(char *str)
void key_con_read(char *str)
{
char str_key[4][9];
if(valid_key(str))

if(valid_key(str)&&(strlen(str)==32))
{
for(int i=0; i<4; i++)
{
Expand Down Expand Up @@ -215,6 +214,7 @@ void key_write_in_file(char *keyfilename)
}
fwrite(key,sizeof(uint8_t), 16, keyfile);
printf("The key is recorded in file: %s\n", keyfilename);
fclose(keyfile);
exit(0);

}
Expand All @@ -231,7 +231,7 @@ int main(int argc, char **argv)
puts("\n");
puts("----------- TEAtool -----------\n");
printf(" ) ( Version: \n");
printf(" ( ) ) 1.5-stable \n");
printf(" ( ) ) 1.6-stable \n");
printf(" ) ( ( \n");
printf(" _______)_ Author: \n");
printf(" .-'---------| turbocat2001 \n");
Expand Down

0 comments on commit 21974ec

Please sign in to comment.