Uses of Class
org.owasp.esapi.crypto.CipherText
-
Packages that use CipherText Package Description org.owasp.esapi The ESAPI interfaces andException
classes model the most important security functions to enterprise web applications.org.owasp.esapi.crypto This package contains ESAPI cryptography-related classes used throughout ESAPI.org.owasp.esapi.reference.crypto This package contains the reference implementation for some of the ESAPI cryptography-related classes used throughout ESAPI. -
-
Uses of CipherText in org.owasp.esapi
Methods in org.owasp.esapi that return CipherText Modifier and Type Method Description CipherText
Encryptor. encrypt(javax.crypto.SecretKey key, PlainText plaintext)
Encrypts the provided plaintext bytes using the cipher transformation specified by the propertyEncryptor.CipherTransformation
as defined in theESAPI.properties
file and the specified secret key.CipherText
Encryptor. encrypt(PlainText plaintext)
Encrypts the provided plaintext bytes using the cipher transformation specified by the propertyEncryptor.CipherTransformation
and the master encryption key as specified by the propertyEncryptor.MasterKey
as defined in theESAPI.properties
file.Methods in org.owasp.esapi with parameters of type CipherText Modifier and Type Method Description PlainText
Encryptor. decrypt(javax.crypto.SecretKey key, CipherText ciphertext)
Decrypts the providedCipherText
using the information from it and the specified secret key.PlainText
Encryptor. decrypt(CipherText ciphertext)
Decrypts the providedCipherText
using the information from it and the master encryption key as specified by the propertyEncryptor.MasterKey
as defined in theESAPI.properties
file. -
Uses of CipherText in org.owasp.esapi.crypto
Methods in org.owasp.esapi.crypto that return CipherText Modifier and Type Method Description CipherText
CipherTextSerializer. asCipherText()
Return the actualCipherText
object.static CipherText
CipherText. fromPortableSerializedBytes(byte[] bytes)
Create aCipherText
object from what is supposed to be a portable serialized byte array, given in network byte order, that represents a valid, previously serializedCipherText
object usingasPortableSerializedByteArray()
.Methods in org.owasp.esapi.crypto with parameters of type CipherText Modifier and Type Method Description static boolean
CryptoHelper. isCipherTextMACvalid(javax.crypto.SecretKey sk, CipherText ct)
If a Message Authentication Code (MAC) is required for the specifiedCipherText
object, then attempt to validate the MAC that should be embedded within theCipherText
object by using a derived key based on the specifiedSecretKey
.static boolean
CryptoHelper. isMACRequired(CipherText ct)
Check to see if a Message Authentication Code (MAC) is required for a givenCipherText
object and the current ESAPI.property settings.Constructors in org.owasp.esapi.crypto with parameters of type CipherText Constructor Description CipherTextSerializer(CipherText cipherTextObj)
-
Uses of CipherText in org.owasp.esapi.reference.crypto
Methods in org.owasp.esapi.reference.crypto that return CipherText Modifier and Type Method Description CipherText
JavaEncryptor. encrypt(javax.crypto.SecretKey key, PlainText plain)
Encrypts the provided plaintext bytes using the cipher transformation specified by the propertyEncryptor.CipherTransformation
as defined in theESAPI.properties
file and the specified secret key.CipherText
JavaEncryptor. encrypt(PlainText plaintext)
Encrypts the provided plaintext bytes using the cipher transformation specified by the propertyEncryptor.CipherTransformation
and the master encryption key as specified by the propertyEncryptor.MasterKey
as defined in theESAPI.properties
file.Methods in org.owasp.esapi.reference.crypto with parameters of type CipherText Modifier and Type Method Description PlainText
JavaEncryptor. decrypt(javax.crypto.SecretKey key, CipherText ciphertext)
Decrypts the providedCipherText
using the information from it and the specified secret key.PlainText
JavaEncryptor. decrypt(CipherText ciphertext)
Decrypts the providedCipherText
using the information from it and the master encryption key as specified by the propertyEncryptor.MasterKey
as defined in theESAPI.properties
file.
-