public interface CryptoService
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String text)
decrypt given text as plainText (encrypted), use cryptoKey as string in context and return decrypted plainText.
|
String |
decrypt(String cryptoKey,
String encrypted)
decrypt given cryptoKey as string and text as plainText (encrypted) and return decrypted plainText.
|
String |
encrypt(String text)
encrypt given text as plainText, use cryptoKey as string in context and return encrypted plainText.
|
String |
encrypt(String cryptoKey,
String text)
encrypt given cryptoKey as string and text as plainText and return encrypted plainText.
|
String |
getPrefix() |
String getPrefix()
String encrypt(String text) throws TechnicalException
text
- is plain text.TechnicalException
- is thrown if you have a technical error (NoSuchAlgorithmException or NoSuchPaddingException or InvalidKeyException or IllegalBlockSizeException or BadPaddingException, ...) in
NoraUi.String decrypt(String text) throws TechnicalException
text
- is encrypted plain text.TechnicalException
- is thrown if you have a technical error (NoSuchAlgorithmException or NoSuchPaddingException or InvalidKeyException or IllegalBlockSizeException or BadPaddingException, ...) in
NoraUi.String encrypt(String cryptoKey, String text) throws TechnicalException
cryptoKey
- as string.text
- as string.TechnicalException
- is thrown if you have a technical error (NoSuchAlgorithmException or NoSuchPaddingException or InvalidKeyException or IllegalBlockSizeException or BadPaddingException, ...) in
NoraUi.String decrypt(String cryptoKey, String encrypted) throws TechnicalException
cryptoKey
- as string.encrypted
- as string.TechnicalException
- is thrown if you have a technical error (NoSuchAlgorithmException or NoSuchPaddingException or InvalidKeyException or IllegalBlockSizeException or BadPaddingException, ...) in
NoraUi.Copyright © 2023 NoraUi. All rights reserved.