This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(void){ | |
cout << "テスト" <<endl; | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void){ | |
int a,b; | |
do{ | |
printf("1~3までの数字を入力してください。\n"); | |
scanf("%d",&a); | |
switch(a){ | |
case 1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void){ | |
int a,b=1; | |
while(b){ | |
printf("1~3までの数字を入力してください。\n"); | |
scanf("%d",&a); | |
switch(a){ | |
case 1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function HSA_1($String){ | |
$data = md5($String).md5(sha1($String)).sha1($String).sha1(md5($String)); | |
$data2 = sha1($String).sha1(md5($String)).md5($String).md5(sha1($String)); | |
$ret = sha1($data).sha1($data2); | |
$ret = sha1($ret); | |
return $ret; | |
} | |
function HSA_2($String){ | |
$data = md5($String).md5(sha1($String)).sha1($String).sha1(md5($String)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function HSA_1($String){ | |
$data = md5($String).md5(sha1($String)).sha1($String).sha1(md5($String)); | |
$data2 = sha1($String).sha1(md5($String)).md5($String).md5(sha1($String)); | |
$ret = sha1($data).sha1($data2); | |
$ret = sha1($ret); | |
return $ret; | |
} | |
function HSA_2($String){ | |
$data = md5($String).md5(sha1($String)).sha1($String).sha1(md5($String)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct tagINT24{ | |
__int8 Num[3]; | |
void operator = (int nValue){ | |
Num[0] = nValue & 0xFF; | |
Num[1] = (nValue & 0xFF00) >> 8; | |
Num[2] = (nValue & 0xFF0000) >> 16; | |
} | |
operator int(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
--------------------------------- | |
SHA1 とHMAC-SHA1(Win32 API未使用) | |
作成者:Hiroaki Software | |
---------------------------------- | |
-------------参考資料など----------- | |
1.Javaで作って学ぶ暗号技術 (森北出版) | |
2.暗号化アルゴリズムを実感しよう その2 | |
http://www.geocities.co.jp/SiliconValley-Oakland/8878/lab18/lab18.html | |
3.フリーのsha1ハッシュ計算ツール |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
--------------------------------- | |
SHA1 と HMAC-SHA1 と SHA256 と HMAC-SHA256(Win32 API未使用) | |
作成者:Hiroaki Software | |
---------------------------------- | |
-------------参考資料など----------- | |
1.Javaで作って学ぶ暗号技術 (森北出版) | |
2.暗号化アルゴリズムを実感しよう その2 | |
http://www.geocities.co.jp/SiliconValley-Oakland/8878/lab18/lab18.html | |
3.フリーのsha1ハッシュ計算ツール |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
●SHA1、SHA256 | |
●HMAC-SHA1、HMAC-SHA256 | |
●Shift-JIS⇔JIS | |
●Base64エンコード・デコード | |
*/ | |
//インクルード | |
#include <stdio.h> | |
#include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
●SHA1、SHA256 | |
●HMAC-SHA1、HMAC-SHA256 | |
●Shift-JIS⇔JIS | |
●Base64エンコード・デコード | |
*/ | |
//インクルード | |
#include <stdio.h> | |
#include <string.h> |
OlderNewer