[Jprogramming] Newbie query

Henry Rich henryhrich at gmail.com
Sun Dec 13 17:02:30 UTC 2020


Use enc@, and dec@, to ensure the result is a list.

Henry Rich

On 12/13/2020 11:27 AM, Richard Donovan wrote:
> 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
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


-- 
This email has been checked for viruses by AVG.
https://www.avg.com



More information about the Programming mailing list