User Tools

Site Tools


ja:rule:enc:ハッシュ値取得に文字列連結をしない

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ja:rule:enc:ハッシュ値取得に文字列連結をしない [2017/06/29 09:38] – created yohgakija:rule:enc:ハッシュ値取得に文字列連結をしない [2017/06/29 09:39] (current) – [適合コード例] yohgaki
Line 16: Line 16:
 $key = 'random key'; $key = 'random key';
 $data = 'Some Data'; $data = 'Some Data';
-$hash = hash_hmac('sha2-256', $data $key);+$hash = hash_hmac('sha2-256', $data $key);
 </code> </code>
  
ja/rule/enc/ハッシュ値取得に文字列連結をしない.1498729126.txt.gz · Last modified: 2017/06/29 09:38 by yohgaki

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki