public class CryptionUtil extends Object
コンストラクタと説明 |
---|
CryptionUtil() |
修飾子とタイプ | メソッドと説明 |
---|---|
static byte[] |
decrypt(byte[] bytes,
String alg,
Key key)
バイトを暗号化します。
|
static byte[] |
encrypt(byte[] bytes,
String alg,
Key key)
バイトを復号化します。
|
public static final byte[] decrypt(byte[] bytes, String alg, Key key) throws GeneralSecurityException
bytes
- 暗号化したいバイトalg
- 暗号化アルゴリズムkey
- 暗号化に使用する鍵GeneralSecurityException
- セキュリティエラーが発生した場合public static final byte[] encrypt(byte[] bytes, String alg, Key key) throws GeneralSecurityException
bytes
- 復号化したいバイトalg
- 暗号化アルゴリズムkey
- 復号化に使用する鍵GeneralSecurityException
- セキュリティエラーが発生した場合Copyright © 2012 NTT DATA INTRAMART CORPORATION