Impelementasi Kriptografi RSA dan XOR Cipher untuk Enkripsi Citra Digital KTP
Abstract
The advancement of technology has led to innovative solutions in administrative sectors, exemplified by the introduction of “KTP Digital”. However, not everyone has adopted “KTP Digital” and is still relying on scanned copies of identity cards that can expose digital image data to security vulnerabilities. This study addresses these vulnerabilities by proposing encryption techniques. Utilizing RSA and XOR Cipher algorithms, this research demonstrates effective encryption and decryption of digital image data. Evaluation metrics, including Peak Signal-to-Noise Ratio (PSNR), confirm minimal similarity between plain and cipher images, indicating robust encryption. Specifically, PSNR values for plain vs. cipher images range from 7 to 8 dB, well below 10 dB, indicating a very significant difference. Additionally, high PSNR values between original and decrypted plain images, which is 100 dB, suggest negligible data alteration post decryption confirming that the decryption process successfully restores the image to its original state.
Keywords: Cryptography, Encrypting, Decrypting, RSA, XOR Cipher