My Actual Requirement is to Encrypt and Decrypt Specific Fields of My Json String in RunTime Just Like using and @Converter Notation in My Entity Class. My Earlier Attempts to Encrypt the Entire Context is throwing out Performance Issues

Defining My Table Structure in Entity Class :

class TableName{
   String Type;
    @Lob
    @Convert(converter = BlobEncryptionConverter.class)
   byte[] context;
}
@Slf4j
@Converter
public class BlobEncryptionConverter implements AttributeConverter<byte[], byte[]> {
  //it has encrypt and decrypt functions that does the job in runtime
}

each type has different format of Context which points to differnt classes; i just use an objectMapper to convert to an fro; How about Encrypting-Decrypting Specific Fields in runtime, i am open to convert this byte[] to JsonString to a hashmap also

Comment From: sameemcodes

@wilkinsona can you please look into this

Comment From: wilkinsona

Please don't open an issue that duplicates a Stack Overflow question.

Comment From: sameemcodes

Nope Opened Just now by me deleting the other one

Comment From: sameemcodes

Now you can re-open and check the issue

Comment From: philwebb

I'm not sure I really understand the issue as described, but custom converters on Entity classes aren't something we're going to implement in Spring Boot itself. Discussion about the various techniques you might be able to use to achieve what you want should continue on your stackoverflow question