This file contains 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
% sudo diskutil checkRAID |
This file contains 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
$ dscacheutil -flushcache |
This file contains 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
% base64 -D -i testfile | iconv -f ISO-2022-JP -t UTF-8 |
This file contains 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
# -*- coding: utf-8 -*- | |
from Crypto.Cipher import AES | |
from binascii import b2a_hex | |
''' | |
@brief CipherDataクラス | |
ブロック暗号は元のデータの長さがブロック長の倍数になっていない場合パディングが必要なので、それを覚えとくためのクラス。 | |
''' | |
class CipherData: | |
def __init__(self, encrypted_data, padding_length): |
NewerOlder