From: Markus Triska Date: Wed, 20 May 2020 18:10:26 +0000 (+0200) Subject: "codes" --> "bytes" X-Git-Tag: v0.8.123~7^2~9 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=2d036c6b2511417f3c807fc8f75c39edfed55fae;p=scryer-prolog.git "codes" --> "bytes" Support for lists of bytes may be dropped from library(crypto). Use lists of characters to make your code future-proof. Lists of characters will always be supported due to their compactness, and because Prolog applications should move towards characters. --- diff --git a/src/prolog/lib/crypto.pl b/src/prolog/lib/crypto.pl index 1562b4c1..804c116f 100644 --- a/src/prolog/lib/crypto.pl +++ b/src/prolog/lib/crypto.pl @@ -478,7 +478,7 @@ bytes_base64_([A,B,C|Ls]) --> [W,X,Y,Z], Algorithm, key Key, and initialization vector (or nonce) IV, to give CipherText. - PlainText must be a list of codes or characters, Key and IV must be + PlainText must be a list of bytes or characters, Key and IV must be lists of bytes, and CipherText is created as a list of characters. Keys and IVs can be chosen at random (using for example