Joke Collection Website - Blessing messages - Live SMS
Live SMS
const? Password? =? require(“crypto”);
Function? Signature ()
{
var? strMobile? =? "This is my mobile phone"; ? //The contents of the mobile field of //tel.
var? Strapki =? "This is my key"; ? //appkey corresponding to //sdkappid needs to be kept highly confidential by business parties.
var? strRand? =? "7226249334"; ? //The value of the random field in the //url.
var? strTime? =? " 1457336869"; ? //unix timestamp
var? buf? =? “appkey =“+strAppKey+“& amp; random =“+strRand+“& amp; Time = "
+strTime+“& amp; mobile =“+strMobile;
var? Siegel? =? crypto . create hash(‘sha 256‘)。 Update (buf,? utf-8’)。 digest(‘hex‘);
Return? sig
}
Console. log(SIG()); The output results are as follows:
7b1e97051886ad66c684530db2b01644f828f31E06D624d88af5469afaa0 The reason is that utf-8 is emphasized in the document, but the default encoding of js is not this, so it needs to be specified.
In addition, the calculation result of this sig is related to your output parameter, which is not a constant.
Also, your mobile phone and appkey are both in Chinese, and the official ones seem to be numbers and letters.
- Related articles
- How to open an account for precious metals
- Notice of the first securities examination announced! The exam starts on February 26th!
- Why do you become anxious when men don't return messages?
- There has been no SMS reminder for the passbook.
- Can Suzhou citizen card open transaction SMS?
- Who knows the development of contemporary lottery in China?
- There are no missed calls and unread text messages in the screen lock interface of my Cool 7296 mobile phone. How to set it?
- What should I do if I forget my QQ information record password?
- Good morning, WeChat business. Sentence band of positive energy
- How to use virtual call on Meizu mobile phone