From bc2b1b7df1e1ff91de067735265d7b4edad8509f Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Sat, 20 Jan 2024 13:54:17 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20shikokuc?= =?UTF-8?q?huo/secretbase@51a14f067e7acccbae089bbe12dcbb47652e535a=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 21 ++++++++++++++++----- pkgdown.yml | 2 +- reference/sha3.html | 17 ++++++++++------- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 294f12e..e84e26e 100644 --- a/index.html +++ b/index.html @@ -97,7 +97,7 @@
secretbase
offers one main function sha3()
:
secretbase
offers one main function: sha3()
To use:
To:
+sha3("", size = 512) +#> [1] "a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26" +Hash arbitrary R objects:
read_integer()
.
+sha3(data.frame(a = 1, b = 2))
+#> [1] "05d4308e79d029b4af5604739ecc6c4efa1f602a23add0ed2d247b7407d4832f"
+
+sha3(NULL)
+#> [1] "b3e37e4c5def1bfb2841b79ef8503b83d1fed46836b5b913d7c16de92966dcee"
To hash to an integer value:
+read_integer()
.
hash <- sha3("秘密の基地の中", size = 32, convert = FALSE)
hash
#> [1] 7f c2 38 77
diff --git a/pkgdown.yml b/pkgdown.yml
index b914c36..6150b7b 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -2,7 +2,7 @@ pandoc: 2.19.2
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
-last_built: 2024-01-20T13:25Z
+last_built: 2024-01-20T13:54Z
urls:
reference: https://shikokuchuo.net/secretbase/reference
article: https://shikokuchuo.net/secretbase/articles
diff --git a/reference/sha3.html b/reference/sha3.html
index 4e53e15..ab48810 100644
--- a/reference/sha3.html
+++ b/reference/sha3.html
@@ -1,6 +1,6 @@
-Cryptographic Hashing Using the SHA-3 Algorithm — sha3 • secretbase Cryptographic Hashing Using the SHA-3 Algorithm — sha3 • secretbase
@@ -56,8 +56,8 @@ Cryptographic Hashing Using the SHA-3 Algorithm
Returns a SHA-3 hash of the supplied R object. This implementation uses code - from the 'Mbed TLS' library, under the Trusted Firmware Project.
+Returns a SHA-3 hash of the supplied R object. Uses the implementation by the + 'Mbed TLS' library from the Trusted Firmware Project.
For argument 'x', a scalar string or raw vector (with no attributes) - is hashed 'as is'. All other objects are hashed in-place, parsed by R - serialization version 3, big-endian representation, skipping the header - (for portability as this contains the R version number).
+ is hashed 'as is'. +All other objects are hashed in-place, in a 'streaming' fashion by R + serialization but without allocation of the serialized object. To ensure + portability, R serialization version 3, big-endian representation is + always used, skipping the headers (as these contain the R version number + and native encoding information).
The result of hashing is always a byte sequence, which is converted to a character string hex representation if 'convert' is TRUE, or returned as a raw vector if 'convert' is FALSE.