Package com.axemble.vdoc.sdk.utils
Interface IEncryptUtils
public interface IEncryptUtils
IEncryptUtils
Use this utils to encrypt and decrypt string
-
Method Summary
Modifier and TypeMethodDescriptionDecrypt encrypted stringDecrypt encrypted string with an encryption keyEncrypt stringEncrypt string with an encryption key
-
Method Details
-
encrypt
Encrypt string- Parameters:
value
- to encrypt- Returns:
- encrypted value
-
encrypt
Encrypt string with an encryption key- Parameters:
privateKey
- the encryption key (128 bit key)initVector
- the init vector for encryption (128 bit key)value
- to encrypt- Returns:
- encrypted value
-
decrypt
Decrypt encrypted string- Parameters:
encrypted
- string to decrypt- Returns:
- decrypted string
-
decrypt
Decrypt encrypted string with an encryption key- Parameters:
privateKey
- the encryption key (128 bit key)initVector
- the init vector for encryption (128 bit key)encrypted
- string to decrypt- Returns:
- decrypted string
-