public class ContentCrypto
extends java.lang.Object
| Constructor and Description |
|---|
ContentCrypto() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decrypt(java.lang.String encrypted)
method used for decrypt the text.
|
static byte[] |
decryptImageFileContent(java.lang.String dateStringKey,
byte[] bytesOfInputStream)
It decryptes the given image content using given dateString as a key and return decrypted image
content.
|
static java.lang.String |
decryptUsingKey(java.lang.String encrypted,
java.lang.String key)
method used for decrypt the text using provided key.Here key is considered as date and time
format.
|
java.lang.String |
encrypt(java.lang.String textToEncrypt)
method used for encrypt the text.
|
static byte[] |
encryptImageFileContent(java.lang.String dateStringKey,
byte[] byteArrayInputStream)
It encrypts the given image content using given dateString as a key and return encrypted image
content.
|
static java.lang.String |
encryptUsingKey(java.lang.String textToEncrypt,
java.lang.String key)
method used for encrypt the text using provided key.
|
public java.lang.String encrypt(java.lang.String textToEncrypt)
textToEncrypt - is the type of String.public java.lang.String decrypt(java.lang.String encrypted)
encrypted - is the type Stringpublic static java.lang.String encryptUsingKey(java.lang.String textToEncrypt,
java.lang.String key)
textToEncrypt - is the type of String.key - which is use for encryptionpublic static java.lang.String decryptUsingKey(java.lang.String encrypted,
java.lang.String key)
encrypted - is the type Stringkey - which is use for decryptionpublic static byte[] encryptImageFileContent(java.lang.String dateStringKey,
byte[] byteArrayInputStream)
dateStringKey - date in string which is used as a keybyteArrayInputStream - array of bytes contains image contentpublic static byte[] decryptImageFileContent(java.lang.String dateStringKey,
byte[] bytesOfInputStream)
dateStringKey - date in string which is used as a keybytesOfInputStream - array of bytesCopyright © 2022. All rights reserved.