The decision policy of data encryption is framed with twophases: optimal and secured based on the energy consumption with discrete-time partially observed Markov decision process which has the effect of current time slotwith future time constraints [25].