[Jprogramming] Newbie query

Richard Donovan rsdonovan at hotmail.com
Sun Dec 13 16:27:23 UTC 2020


Hi

I have written a text encryption / decryption system in J.

The input has to be a literal.

I test it using the following system:-


NB. Encrypt, Decrypt, Compare identical
   a -: d=: dec e=:enc a=:1000000#'abcdefghij'
1
a -: d=: dec e=:enc a=: ": 1000000?@$?256
1

   NB.     BUT
   a -: d=:dec e=:enc a=: ": 44{a.
0
   $d
1
   $a

Could someone tell me WHY and how to overcome this?

Thanks


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10



More information about the Programming mailing list