try

(,a) -: d=:dec e=:enc a=: ": 44{a.

I guess d will be a list while a is a single atom
(compare $a with $d for verification)

Am 13.12.20 um 17:27 schrieb Richard Donovan:
> 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
> 

-- 
----------------------
mail written using NEO
neo-layout.org
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to