Implementasi Algoritma Affine Cipher, RSA-CRT dan Alternate Unary Code Dalam Pengamanan dan Kompresi Teks

vi

ABSTRAK

Penelitian ini bertujuan untuk membuat aplikasi yang dapat mengamankan serta
mengkompresi isi file teks doc ataupun txt sehingga file tersebut akan tetap aman serta
tidak memakan ruang penyimpanan yang terlalu besar. Penelitian ini menerapkan
metode kriptografi hibrida sebagai pengamanan file teks dengan menggunakan
algoritma Affine Cipher untuk enkripsi dan dekripsi isi file teks dan algoritma RSACRT untuk enkripsi dan dekripsi kunci Affine Cipher. Dan untuk metode kompresinya
menggunakan algoritma Alternate Unary Code. Hasil enkripsi isi file teks (cipherteks)
berupa karakter-karakter yang tidak dimengerti dan disimpan dalam file yang
berformat aff. Hasil enkripsi kunci Affine Cipher (cipherkey) disimpan dalam file yang
berformat ckey. Hasil kompresi cipherteks berupa string bit yang telah diubah menjadi
array byte dan disimpan dalam file yang berformat auc. Panjang karakter plainteks
tidak berubah setelah dienkripsi. Jumlah character set dapat berpengaruh pada nilai
Cr dan Ss. Nilai Ss akan negatif jika hasil kompresi lebih besar dari ukuran teks asli.
Kata Kunci

: Kriptografi, Kriptografi Hibrida, Affine Cipher, RSA-CRT, Kompresi,
Alternate Unary Code


Universitas Sumatera Utara

vii

THE IMPLEMENTATION OF AFFINE CIPHER, RSA-CRT AND
ALTERNATE UNARY CODE ALGORITHM IN SECURING AND
COMPRESSING TEXT

ABSTRACT

This study aims to created applications that can secure and compress the contents of
doc or txt files, so the file will secure and does not consuming the storage space too
much. This research applies hybrid cryptography method as security of text file by
using Affine Cipher algorithm for encryption and decryption of text file contents and
RSA-CRT algorithm for encryption and decryption of Affine Cipher key. For the
compression method using Alternate Unary Code algorithm. Encrypting using file text
(ciphertext) is form of characters that are not understood and stored in the file aff
format. The encryption key of Affine Cipher (cipherkey) is saved in a ckey formatted
file. The result of ciphertext compression is a bit string that has been converted to byte
array and stored in auc file. The plaintext character length does not change after it is

encrypted. The number of character sets can affect the values of Cr and Ss. The Ss
value will be negative if the compression result is larger than the original text size.
Keyword

: Cryptography, Hybrid Cryptography, Affine Cipher, RSA-CRT,
Compression, Alternate Unary Code

Universitas Sumatera Utara