public class NjCipher
extends Object
コンストラクタと説明 |
---|
NjCipher() |
public static byte[] encrypt(String key, String text) throws Exception
key
- 暗号するキーtext
- 暗号する文字列Exception
public static String decrypt(String key, byte[] encrypted) throws Exception
key
- 暗号するキーencrypted
- 暗号化バイト配列Exception
public static String asHexs(byte[] bytes)
bytes
- バイト配列public static byte[] asBytes(String hex)
hex
- 16進数の文字列