Jasypt Users Forum

Database column length for a Java property type 'String'

View: New views
1 Messages — Rating Filter:   Alert me  

Database column length for a Java property type 'String'

by SJ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using Jasypt with Hibernate to implement encryption.

Let's say I have a property: String firstName;

Table column is created as: FIRST_NAME varchar2(255).

So what should be the maximum length of the plain text that can I enter into 'firstName'?

To accept 50 characters for firstName property, shall I give the max length for FIRST_NAME column as 100 or 150.

What should be maximum length of the column in database for property of type 'String' that is encrypted with Jasypt?

Thanks in advance!!!!
LightInTheBox - Buy quality products at wholesale price!