Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8372 → Rev 8373

/programs/other/TinyHashView/algorithms/sha256.h
File deleted
/programs/other/TinyHashView/algorithms/sha1.h
File deleted
/programs/other/TinyHashView/algorithms/md5.c
File deleted
/programs/other/TinyHashView/algorithms/sha256.c
File deleted
/programs/other/TinyHashView/algorithms/md5.h
File deleted
/programs/other/TinyHashView/algorithms/sha1.c
File deleted
/programs/other/TinyHashView/notify.h
File deleted
/programs/other/TinyHashView/kos32sys.h
File deleted
/programs/other/TinyHashView/BUILD_KEX.SH
1,2 → 1,2
#SHS
/kolibrios/develop/tcc/tcc algorithms/md5.c algorithms/sha1.c algorithms/sha256.c thashview.c -o thashview -lck
/kolibrios/develop/tcc/tcc thashview.c -o thashview -lck -lcryptal
/programs/other/TinyHashView/Makefile
5,13 → 5,12
KTCC=$(KTCC_DIR)/bin/kos32-tcc
KPACK=kpack
 
SRC=thashview.c algorithms/*.c
CFLAGS=-nostdinc -I $(KTCC_DIR)/libc/include
LFLAGS=-nostdlib -L $(KTCC_DIR)/bin/lib $(KTCC_DIR)/bin/lib/start.o
LIBS = -lck
SRC=thashview.c
CFLAGS=-I $(KTCC_DIR)/libc/include
LIBS = -lck -lcryptal
 
all:
$(KTCC) $(CFLAGS) $(LFLAGS) $(SRC) $(LIBS) -o $(NAME)
$(KTCC) $(CFLAGS) $(SRC) $(LIBS) -o $(NAME)
$(KPACK) $(NAME)
 
clean:
/programs/other/TinyHashView/thashview.c
1,19 → 1,18
/*€¢â®à: ‹®£ ¥¢ Œ ªá¨¬(turbocat2001) */
#include <stdio.h>
#include <stdlib.h>
#include "kos32sys.h"
#include "notify.h"
#include <kos32sys1.h>
#include <string.h>
#include <stdarg.h>
#include "algorithms/md5.h"
#include "algorithms/sha1.h"
#include "algorithms/sha256.h"
#include <cryptal/md5.h>
#include <cryptal/sha1.h>
#include <cryptal/sha256.h>
 
#define TRUE 1;
#define FALSE 0;
#define MAX_HASH_LEN 65 // Œ ªá¨¬ «ì­ ï ¤«¨­  áâப¨
#define WINDOW_W 665
#define VERSION "%s - thashview 2.3"
#define VERSION "%s - thashview 2.4"
 
typedef unsigned char bool;
struct kolibri_system_colors sys_color_table;
59,8 → 58,11
BTN_PASTE=50 //‚áâ ¢¨âì ¢ edit_box(¯®ª  ¢ ࠧࠡ®âª¥)
};
 
void notify_show(char *text)
{
start_app("/sys/@notify", text);
}
 
 
void* safe_malloc(size_t size) // ¥§®¯ á­ë© malloc. ®ª §ë¢ ¥â 㢥¤®¬«¥­¨¥ ®¡ ®è¨¡ª¥ ¨ § ªà뢠¥â ¯à®£à ¬¬ã ¥á«¨ ¯ ¬ïâì ­¥ ¡ë«  ¢ë¤¥«¥­ 
{
void *p=malloc(size);
173,7 → 175,7
 
draw_bar(10, 121, 525,20, WHITE); // ‘®§¤ ñ¬ ¯àאַ㣮«ì­¨ª ¤«ï ¯®«ï ¢¢®¤ 
draw_text_sys(edit_box_buff,15, 125, 0, 0x90000000| edit_box_text_color); // ‚뢮¤¨¬ ⥪áâ ¨§ ¡ãää¥à  ¢¢®¤ 
draw_text_sys("|",10+(8*str_pos),125,0,0x90000000 | sys_color_table.work_text);
draw_text_sys("|",10+(8*str_pos),125,0,0x90000000 | BLACK);
 
define_button((10 << 16) + 60, (30 << 16) + 20, BTN_MD5, GREEN); // Ž¯à¥¤¥«ï¥¬ ª­®¯ªã md5
define_button((10 << 16) + 60, (60 << 16) + 20, BTN_SHA1, GREEN);// Ž¯à¥¤¥«ï¥¬ ª­®¯ªã sha1
300,7 → 302,7
 
void edit_box(oskey_t key) //”ã­ªæ¨ï ॠ«¨§ãîé ï áâப㠢¢®¤ 
{
edit_box_text_color=sys_color_table.frame_area;
edit_box_text_color=BLACK;
if(key.code==CTRL_V) // …᫨ ­ ¦ â® Ctrl+V â® ¢áâ ¢¨âì ¨§ ¡ãä¥à  ®¡¬¥­ 
{
paste_to_edit_buffer();