| Constructor and Description |
|---|
Aes(byte[] key) |
Aes(SecretKeySpec keySpec,
IvParameterSpec algSpec) |
Aes(SecretKeySpec keySpec,
IvParameterSpec algSpec,
String cipherName) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(byte[] cipher)
decrypt the cipher to its plain text
|
byte[] |
decode(@Nullable InputStream cipher)
decrypt the cipher to its plain text
|
@NotNull String |
decode16(@Nullable String cipher)
decrypt the HEX cipher to its plain text
|
@NotNull String |
decode64(@Nullable String cipher)
decrypt any type of BASE64 cipher to its plain text
|
byte[] |
encode(byte[] plain)
encrypt plain text
|
byte[] |
encode(@Nullable InputStream plain)
encrypt plain text
|
byte[] |
encode(@Nullable String plain)
encrypt plain text
|
@NotNull String |
encode16(@Nullable String plain)
encrypt plain text to HEX
|
@NotNull String |
encode64(@Nullable String plain)
encrypt plain text to RFC4648_URLSAFE
|
public Aes(byte[] key)
public Aes(SecretKeySpec keySpec, IvParameterSpec algSpec)
public Aes(SecretKeySpec keySpec, IvParameterSpec algSpec, String cipherName)
public byte[] encode(@Nullable
@Nullable String plain)
public byte[] encode(@Nullable
@Nullable InputStream plain)
public byte[] encode(byte[] plain)
public byte[] decode(byte[] cipher)
public byte[] decode(@Nullable
@Nullable InputStream cipher)
@NotNull public @NotNull String encode16(@Nullable @Nullable String plain)
@NotNull public @NotNull String decode16(@Nullable @Nullable String cipher)
@NotNull public @NotNull String encode64(@Nullable @Nullable String plain)
Copyright © 2024. All rights reserved.