N-Sum encryption algorithm