public final class Encryption extends Object
Constructor and Description |
---|
Encryption(String pathToSecretKey) |
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String encryptedText) |
String |
encrypt(String clearText) |
String |
generateRandomSecretKey() |
boolean |
hasSecretKey()
Checks the availability of the secret key, that is required to encrypt and decrypt.
|
boolean |
isEncrypted(String value) |
String |
scramble(String clearText) |
void |
setPathToSecretKey(String pathToSecretKey) |
public Encryption(@Nullable String pathToSecretKey)
public void setPathToSecretKey(@Nullable String pathToSecretKey)
public boolean hasSecretKey()
public boolean isEncrypted(String value)
public String generateRandomSecretKey()
Copyright © 2009–2018 SonarSource. All rights reserved.