Skip to content

stream84/ARIA_CIPHER

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ARIA_CIPHER

ARIA is standard block cipher of South Korea this class support only cbc, ecb mode

  1. create instance with pad mode
ARIACipher cipher = new ARIACipher(CBC_NoPadding);
  1. set key and iv (if seleted cbc mode)
byte[] key = new byte[] { (byte) 0x43, (byte) 0xa2, (byte) 0xac, (byte) 0x7a, (byte) 0x87, (byte) 0xf8,
          (byte) 0x65, (byte) 0x90, (byte) 0x52, (byte) 0xf2, (byte) 0xf5, (byte) 0x19, (byte) 0xff, (byte) 0xad,
          (byte) 0x3d, (byte) 0xab };
          
byte[] iv = new byte[] { (byte) 0x79, (byte) 0x3e, (byte) 0x9a, (byte) 0x56, (byte) 0x31, (byte) 0x67,
          (byte) 0x83, (byte) 0xf5, (byte) 0x99, (byte) 0xb3, (byte) 0xb6, (byte) 0x24, (byte) 0xf6, (byte) 0x9f,
          (byte) 0x88, (byte) 0x73 };
          
byte[] plain = "aria test plain ".getBytes();

cipher.setKey(key);
cipher.setIV(iv);
  1. encrypt (plain is byte[])
byte[] encrypted = cipher.encrypt(plain);
  1. decrypt
byte[] decrypted = cipher.decrypt(encrypted);

Author

devikkim, devikkim@gmail.com

About

ARIA is standard block cipher of South Korea

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%