SHA1 hash algorithm function

联合创作 · 2023-10-02 15:38

Calculates the sha1 hash of str using the US Secure Hash Algorithm 1.

SHA-1 the Secure Hash Algorithm (SHA) was developed by NIST and is specified in the Secure Hash Standard (SHS, FIPS 180).

This script is used to process variable length message into a fixed-length output using the SHA-1 algorithm. It is fully compatible with UTF-8 encoding.

If you plan using UTF-8 encoding in your project don't forget to set the page encoding to UTF-8 (Content-Type meta tag).

$.sha1("I'm Persian."); // return "1d302f9dc925d62fc859055999d2052e274513ed"
浏览 6
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报