now use ruby internal digest