finish design the encryption