Package io.inugami.commons.security
Class EncryptionUtils
- java.lang.Object
-
- io.inugami.commons.security.EncryptionUtils
-
public class EncryptionUtils extends Object
EncryptionUtils- Since:
- 27 oct. 2016
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
CHAR_AND
The Constant CHAR_AND.protected static String
CHAR_AT
The Constant CHAR_AT.protected static String
CHAR_MINUS
The Constant CHAR_DOUBLE_DOT.protected static String
CHAR_PLUS
The Constant CHAR_PLUS.protected static String
CHAR_SLASH
The Constant CHAR_SLASH.protected static String
CHAR_UNDERSCORE
The Constant CHAR_DOT.
-
Constructor Summary
Constructors Constructor Description EncryptionUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decodeAES(String value)
String
decodeBase64(String value)
byte[]
decodeBase64Bytes(String value)
String
decodeHexa(String value)
Map<String,String>
decodeMap(String value)
String
encodeAES(String value)
String
encodeBase64(byte[] value)
String
encodeBase64(String value)
String
encodeHexa(String value)
String
encodeMap(Map<String,String> value)
String
encodeSha1(String value)
String
makeUniqueToken()
-
-
-
Field Detail
-
CHAR_UNDERSCORE
protected static final String CHAR_UNDERSCORE
The Constant CHAR_DOT.
-
CHAR_AND
protected static final String CHAR_AND
The Constant CHAR_AND.
-
CHAR_MINUS
protected static final String CHAR_MINUS
The Constant CHAR_DOUBLE_DOT.
-
CHAR_PLUS
protected static final String CHAR_PLUS
The Constant CHAR_PLUS.
-
CHAR_AT
protected static final String CHAR_AT
The Constant CHAR_AT.
-
CHAR_SLASH
protected static final String CHAR_SLASH
The Constant CHAR_SLASH.
-
-
Method Detail
-
makeUniqueToken
public String makeUniqueToken()
-
decodeHexa
public String decodeHexa(String value) throws org.apache.commons.codec.DecoderException
- Throws:
org.apache.commons.codec.DecoderException
-
encodeBase64
public String encodeBase64(byte[] value)
-
decodeBase64Bytes
public byte[] decodeBase64Bytes(String value)
-
-