move the flowerEncrypt function to class