Another md5 hash value for the same line in R

I am trying to generate an md5 hash for a string using a package digestin R:

> digest::digest('testing',algo='md5')
[1] "06af8dac40480b40834f70a0fa7b35a3"

I go to http://www.md5.cz/ and do the same thing again, but instead conclude ae2b1fca515949e5d54fb22b8ed95575.

What have I done wrong here?

+4
source share
1 answer

Since jdharrison is already proposed , you must set serializeto FALSE. Otherwise, serialization will add input to the hash function, which will lead to its failure:

, : : X A ASCII, . ( readRDS.)

, ASCII, :

digest::digest('testing',algo='md5', serialize = FALSE)
+4

All Articles