Personal tools
You are here: Home Plone XP leocornus.plonecrypto How to use leocornus.plonecrypto

How to use leocornus.plonecrypto

it is very easy to use leocronus.plonecrypto

eocornus.plonecrypto provides a CMF Tool in Plone site. You can easily get it by using the method getToolByName.

from Products.CMFCore.utils import getToolByName
crypto = getToolByName('leocronus_crypto')
# for encrypt
crypto.encrypt(rawMessage)
# for decrypt
crypto.decrypt(encryptedMessage) 

Document Actions