From bd5e4d0ab7202d455a524e29239ef637f9e6381e Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Mon, 10 Jun 2024 09:47:45 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20shikokuc?= =?UTF-8?q?huo/secretbase@58d4654863226d15975cb4bdca6f9ac7c8408012=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 | 29 +++++++++++++---------------- pkgdown.yml | 2 +- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 8be7d31..067b442 100644 --- a/index.html +++ b/index.html @@ -106,13 +106,11 @@

SHA-3
 sha3("secret base")
-#> [1] "a721d57570e7ce366adee2fccbe9770723c6e3622549c31c7cab9dbb4a795520"
-
-sha3("secret base", convert = FALSE)
+#> [1] "a721d57570e7ce366adee2fccbe9770723c6e3622549c31c7cab9dbb4a795520"
+sha3("secret base", convert = FALSE)
 #>  [1] a7 21 d5 75 70 e7 ce 36 6a de e2 fc cb e9 77 07 23 c6 e3 62 25 49 c3 1c 7c
-#> [26] ab 9d bb 4a 79 55 20
-
-sha3("秘密の基地の中", bits = 512)
+#> [26] ab 9d bb 4a 79 55 20
+sha3("秘密の基地の中", bits = 512)
 #> [1] "e30cdc73f6575c40d55b5edc8eb4f97940f5ca491640b41612e02a05f3e59dd9c6c33f601d8d7a8e2ca0504b8c22f7bc69fa8f10d7c01aab392781ff4ae1e610"
@@ -129,11 +127,10 @@

Stream hash R objectsAll other objects are stream hashed using R serialization (memory-efficient as performed without allocation of the serialized object)
  • Portable as always uses R serialization version 3 big-endian representation, skipping headers (which contain R version and native encoding information)
  • -
    +
     sha3(data.frame(a = 1, b = 2), bits = 224)
    -#> [1] "03778aad53bff7dd68caab94374bba6f07cea235fb97b3c52cf612e9"
    -
    -sha3(NULL)
    +#> [1] "03778aad53bff7dd68caab94374bba6f07cea235fb97b3c52cf612e9"
    +sha3(NULL)
     #> [1] "b3e37e4c5def1bfb2841b79ef8503b83d1fed46836b5b913d7c16de92966dcee"
    @@ -142,7 +139,7 @@

    Stream hash files
    +
     file <- tempfile(); cat("secret base", file = file)
     sha3(file = file)
     #> [1] "a721d57570e7ce366adee2fccbe9770723c6e3622549c31c7cab9dbb4a795520"
    @@ -154,7 +151,7 @@

    Hash to integer / SHAKE256 XOF
    +
     shake256("秘密の基地の中", bits = 32, convert = NA)
     #> [1] 2000208511

    For use in parallel computing, this is a valid method for reducing to a negligible probability that RNGs in each process may overlap. This may be especially suitable when first-best alternatives such as using recursive streams are too expensive or unable to preserve reproducibility. [2]

    @@ -162,20 +159,20 @@

    Hash to integer / SHAKE256 XOF

    Keccak

    -
    +
     keccak("secret base", bits = 384)
     #> [1] "c82bae24175676028e44aa08b9e2424311847adb0b071c68c7ea47edf049b0e935ddd2fc7c499333bccc08c7eb7b1203"

    SHA-256

    -
    +
     sha256("secret base")
     #> [1] "1951c1ca3d50e95e6ede2b1c26fefd0f0e8eba1e51a837f8ccefb583a2b686fe"
    • For a SHA-256 HMAC, pass a character string or raw vector to ‘key’
    -
    +
     sha256("secret base", key = "秘密の基地の中")
     #> [1] "ec58099ab21325e792bef8f1aafc0a70e1a7227463cfc410931112705d753392"
    @@ -186,7 +183,7 @@

    SipHashSipHash-1-3 is optimized for performance
  • Pass a character string or raw vector to ‘key’ - up to 16 bytes (128 bits) of the key data is used
  • -
    +
     siphash13("secret base", key = charToRaw("秘密の基地の中"))
     #> [1] "a1f0a751892cc7dd"
    diff --git a/pkgdown.yml b/pkgdown.yml index 28f7169..a1a2172 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: 3.1.11 pkgdown: 2.0.9 pkgdown_sha: ~ articles: {} -last_built: 2024-05-29T22:09Z +last_built: 2024-06-10T09:47Z urls: reference: https://shikokuchuo.net/secretbase/reference article: https://shikokuchuo.net/secretbase/articles