public class PasswordEncrypt extends Object
コンストラクタと説明 |
---|
PasswordEncrypt() |
修飾子とタイプ | メソッドと説明 |
---|---|
static String |
decrypt(String passwd)
パスワードを復号化する。
|
static String |
decrypt(String key,
String passwd)
パスワードを復号化する。
|
static String |
encrypt(String passwd)
パスワードを暗号化する。
|
static String |
encrypt(String key,
String passwd)
パスワードを暗号化する。
|
static void |
main(String[] args) |
public static String encrypt(String passwd) throws IllegalBlockSizeException, BadPaddingException, NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException
public static String decrypt(String passwd) throws IllegalBlockSizeException, BadPaddingException, NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException
public static String encrypt(String key, String passwd) throws IllegalBlockSizeException, BadPaddingException, NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException
key
- マスクするキーpasswd
- パスワードIllegalBlockSizeException
BadPaddingException
NoSuchPaddingException
InvalidKeyException
NoSuchAlgorithmException
UnsupportedEncodingException
public static String decrypt(String key, String passwd) throws IllegalBlockSizeException, BadPaddingException, NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException
key
- マスクするキーpasswd
- パスワードIllegalBlockSizeException
BadPaddingException
NoSuchPaddingException
InvalidKeyException
NoSuchAlgorithmException
UnsupportedEncodingException
public static void main(String[] args)
Copyright © 2021 S.D.S Co.,Ltd.. All rights reserved.