Encrypt URL Parameter in Liferay

Leave a Comment
Many time we need our URL parameters to be encoded when pass some sensitive information. So here the code which will help you to encode and decode URL Parameters.

Using below snippet you can encrypt your parameters.

Below code you can use to decry pt parameter.
String emailAddress = Encryptor.decrypt(getEncryptionKey(), emailAddress);

Next PostNewer Post Previous PostOlder Post Home


Post a Comment