On Tue, Jan 8, 2013 at 10:19 PM, Ingo Karkat <[email protected]> wrote:
> On 08-Jan-13 21:58:49 +0900, tyru wrote:
>
>> Hi list.
>>
>> Here is a patch to add sha256({string}) function,
>> which returns SHA256 checksum of {string}.
>>
>> To be honest, I don't know this patch is useful.
>> because I've never had a time to use SHA256 checksum in my vim plugins.
>> but adding sha256() function is quite easy
>> because SHA256 implementation (sha256.c) already exists in Vim source code.
>> so I suggest to add this function and we can use it from vimscript.
>
> FWIW, Yukihiro Nakadaira's webapi library (used by his popular gist plugin)
> implements SHA1 in Vimscript. It might profit from this native Vim function...

yes.
if exists('*sha256') returns true, those functions just call it native
Vim function.
it should become faster a lot.

(btw, webapi.vim and gist's author is Yasuhiro Matsumoto(mattn), not
Yukihiro Nakadaira(ynkdir))

>
> -- regards, ingo
>
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui