add gc() to encrypt()