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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm