星期二, 5月 10, 2011

CS 4288/5288 Assignment #3

1. (RSA) Suppose Alice’s public key (e,N)=(7,pq) where p=103, q=313.
a. Alice’s private key is (p,q,d). Compute d. 13639
b. If you want to encrypt a message M=112 and send to Alice, what is the ciphertext? 14275
c. If Alice wants to sign a message M such that R(M)=353. Suppose R(x)=2R+3. What is the RSA signature? 24117
d. Suppose you receive an RSA signature s=11455 for message M’ from Alice. Recover M’. 198

2. (Rabin)
a. Suppose p=239, q=547, Plaintext=55. If we pad 4 bits, what is the ciphertext? 2371
b. Suppose ciphertext=23432. What is the plaintext (suppose we pad 5 bits)? 3621

3. (ElGamal) We use Z1307* with generator g=2. Suppose Alice’s private key=43
a. Bob wants to send an encrypted message to Alice. Suppose plaintext=913, and the random number for encryption is 41. What is the ciphertext?
(688, 927)
b. Alice receives ciphertext (A,B)=(62,164), what’s the plaintext?
1139
c. Alice wants to sign a message m with h(m)=235. Alice chooses random number k=37. What is the digital signature? (43, 980)
d. Suppose you receive a message m’ tagged with Alice’s signature (R’,S’)= (613,758). If we already calculated h(m’)=323, verify this signature.
v1 = 197, v2 = 466
they are not equal, so invalid


4. (DSA) Let p=2339, q=167. Select generator g=17 for Zp*. Alice’s private key a=37.
a. Suppose she wants to sign a message m with h(m)=789. She chooses the random integer k=49. What’s the signature?
α=17^14 = 1431 mod 2339.
y=1431^37 = 1132 mod 2339. r=(1431^49 mod p) mod q = 127.
Apply Euclid’s algorithm, we can find k^-1=75 mod q.
The signature is (r, s) = (127,112).

b. Verify the signature (75, 99).
r = 127, v = 116
they are not equal, so invalid

星期一, 5月 09, 2011

芒果芝士凍餅食譜

餅底材料:
餅底料
60g
牛油溶液
30g


芒果芝士餡材料:
忌廉芝士
220g
糖
60g
芒果醬
40g
淡忌廉
200ml
魚膠粉
8
熱水
2湯匙


餅面材料:
芒果粒
適量
芒果醬
適量


餅底做法:
1)      牛油加熱溶解,加入餅底料拌勻
2)      將已拌勻牛油的餅底料倒入餅模內,以小匙鋪平,放入雪櫃下格待用

芒果芝士凍餅餡做法:
1)      忌廉芝士加入糖打至軟身,加入芒果醬拌勻
2)      將淡忌廉加入( 1 )再拌勻
3)      魚膠粉加入熱水攪拌溶解,再加入( 2 )內拌勻
4)      將已完成的餅餡倒入餅模內,放入雪櫃下格至凝固(約3小時左)
5)      脫模,放上芒果粒及芒果醬即可

注意:
1)      魚膠粉加入熱水攪拌要快,要完全變成溶液, 如果未完全變成溶液就可以用熱水座溶或放入微波爐叮一叮,之後立刻將已做完( 1 )( 2 )的芒果忌廉芝士漿(約2湯匙)拌入魚膠粉溶液中,一拌勻就快速地倒入大碗的芒果忌廉芝士漿中
2)      脫模時可用熱毛巾圍邊或用風筒輕輕吹熱模邊,會比較容易脫模

星期日, 5月 08, 2011

My mother

There is no doubt that all of us that we are growing with full of love and care from our mothers. Nevertheless, we get used for the care from our mothers, haven’t we thought that she will leave us one day suddenly? Even we have done something wrong before, from now, as children of our mothers, we should to start a good communication with her. My mother is actually a targeted person for me.

When I was studying in secondary school, I became much more rebel at that time. I tended to wayward, egocentric, emotional that made my mother worry about me so much. Remember the day, I did not back home last night because I hung out with my friends and stayed at one of my friends eventually. When I backed home, I bet my mother would condemn my willful behavior. Yet, my mother seemed to realize that all teenagers would pass through this rebellion period. Hence, she did not blame me at that moment. Oppositely, she acted patiently and just asked me to sit down and expressed her feeling, how worry she felt at that night. I really felt sorry and apologized to her. Due to her complementary method instead of punishing and blaming to teach me, I seldom had conflicts during my rebellion period. It is undeniable that she did such things is for my own good.

Apart from my mother’s verbal communication, my mother’s non-verbal communication is so effective and efficient to me. When I did something wrong or could not satisfy her, she would habitually use her forefinger to point and stare at me and stare without saying anything. After I saw it, I would naturally stop what I was doing and giving her a smile. But if she is really very angry about something, she would clean all the things quickly and with making much noise. Honestly, she should in no ways be regarded as a good body language emitter. Her body language can reflect her emotion and feeling thoroughly.

Besides, my mother is a good listener for me ever. After I finished my HKCEE, I worked as a waitress in a restaurant during my summer holiday. Unfortunately, I did not work happily at that time, because my manager always blamed me, I would refute him sometimes. I told my mother this happening, she practiced as an active listener who validated my feelings and explore my thought, “I know that you work unhappily and have conflicts with your manager. But working as waitress is not an easy job for all of women. But, let me ask you a question,’ are you really doing well all the time?’ If your answer is ‘yes’, just try to talk to your manager in order to solve this problem. If your manager still does not listen to you and always blame you, you may try to quit and find another job. But it your answer is ‘no’, you should think deeply what’s wrong with you while your manager blame you, you may need to have improvements. Anyway, whatever you decide to do, mother always support you, just tell me your feelings and mother will share will you” I could actually feel the warmth and care from mother. My mother’s words are so helpful and she really gave a great feedback to me and I knew my mother cared of my feelings so much. She tried to help me to solve the problem. Doubtless, she is a best listener for me.


星期三, 5月 04, 2011

Test 10 Topic 11

COMPUTER CONTROL AUDITING AND SECURITY



Question 1
The ____ is responsible for the fragmentation, compression, encryption, and attachment of an SSL header to the cleartext prior to transmission. (21.1)

A. Standard HTTP
B. SFTP
C. S-HTTP
D. SSL Record Protocol

Correct answer is D

Refer to your text, page 653, Computer Security Principles and Practice, Stalling & Brown, 2008.


Question 2
Which of the follow are supported by S/MIME?

A. Enveloped data
B. Signed data
C. Clear-signed data
D. Signed and enveloped data
E. All of the above
F. None of the above

Correct answer is E

Enveloped data: This function consists of encrypted content of any type and encrypted-content encryption keys for one or more recipients.

Signed data: A digital signature is formed by taking the message digest of the content to be signed and then encrypting that with the private key of the signer. The content plus signature are then encoded using base64 encoding. A signed data message can only be viewed by a recipient with S/MIME capability.

Clear-signed data: As with signed data, a digital signature of the content is formed. However, in this case, only the digital signature is encoded using base64. As a result, recipients without S/MIME capability can view the message content, although they cannot verify the signature.

Signed and enveloped data: Signed-only and encrypted-only entities may be nested, so that encrypted data may be signed and signed data or clear-signed data may be encrypted.

Question 3
Which of the following best describes the SSL Handshake Protocol?
A. The SSL Handshake Protocol is a four (4) phase process whereby messages are sent from the server to the client.
B. The SSL Handshake Protocol is a four (4) phase process whereby messages are sent to and from client and server.
C. The SSL Handshake Protocol is a four (4) phase process whereby messages are sent from the client to the server.
D. The SSL Handshake Protocol is a scalable transaction which enables as many (or as few) phases as required to enable transmissions of files of any size.

Correct answer is B

"The SSL Handshake protocol allows the server and client to authenticate each other and to negotiate an encryption and MAC algorithm and cryptogaphic keys to be used to protect data sent in an SSL record. The Handshake Protocol is used before any application data are transmitted. "(from page 654, Stallings & Brown, 2008).

Question 4
Kerberos’ _______________ is an interacting application that validates clients and servers. (22.1)

A. Ticket Granting Service
B. Authentication Server
C. Authentication Client
D. Key Distribution Center

Correct answer is B

Client: wishes to authenticate itself to a server. Server: requires authentication before granting service to client: Authentication server: authenticates users to servers and servers to users. Ticket-granting server:  issues tickets to users who have been authenticated to the authentication server; the tickets are used to authenticate user to server. For further details see page 672 of the text, Stallings & Brown (2008).


Question 5
_________ digital certificates are issued by a CA or RA directly to individuals. (22.4)

A. Server
B. Software publisher
C. Anonymous
D. Personal

Correct answer is D

In essence, an X.509 certificate consists of a public key plus a User ID of the key owner, with the whole block signed by a trusted third party. Typically, the third party is a certificate authority (CA) that is trusted by the user community, such as a government agency or a financial institution. A user can present his or her public key to the authority in a secure manner and obtain a certificate. The user can then publish the certificate. Anyone needing this user's public key can obtain the certificate and verify that it is valid by way of the attached trusted signature.

Question 6
____ is an integrated system of software, encryption methodologies, and legal agreements that can be used to support the entire information infrastructure of an organization.

A. SSL
B. PKI
C. PKC
D. SIS

Correct answer is B

A public-key infrastructure (PKI) is the set of hardware, software, people, policies, and procedures needed to create, manage, store, distribute, and revoke digital certificates based on asymmetric cryptography. The principal objective for developing a PKI is to enable secure, convenient, and efficient acquisition of public keys.

星期二, 5月 03, 2011

Security Alert (A11-05-01): Multiple Vulnerabilities in Firefox, SeaMonkey and Thunderbird

Affected Systems:
  • Firefox 4.0 prior to 4.0.1
  • Firefox 3.6.x prior to 3.6.17
  • Firefox 3.5.x prior to 3.5.19
  • Thunderbird 3.1.x prior to 3.1.10
  • SeaMonkey prior to 2.0.14
Summary:
Multiple vulnerabilities are found in Firefox, SeaMonkey and Thunderbird. These vulnerabilities are caused by memory safety bugs in the browser engine, dangling pointer in "mChannel", "mObserverList" and "nsTreeRange" objects, errors in Java Embedding Plugin (JEP) shipped with Mac OS X versions, or improper bounds checking by the WebGLES library. There are multiple attack vectors, a remote attacker may entice a user to open a webpage with malicious content to exploit the vulnerabilities.
Impact:
Depending on the vulnerability exploited, a successful attack could lead to a number of conditions ranging from elevation of privileges to arbitrary code execution.
Recommendation:
Mozilla has released new versions of the products to address the issues, they can be downloaded at the following URLs:
  • Firefox 4.0.1:
    http://www.mozilla.com/en-US/firefox/all.html
  • Firefox 3.6.17:
    http://www.mozilla.com/en-US/firefox/all-older.html
  • Firefox 3.5.19:
    http://download.mozilla.org/?product=firefox-3.5.19&os=win&lang=en-US
  • Thunderbird 3.1.10:
    http://www.mozillamessaging.com/en-US/thunderbird/all.html
  • SeaMonkey 2.0.14:
    http://www.seamonkey-project.org/releases/
Firefox 3.5.19 is the last security and stability update for Firefox 3.5.x. Users should consider upgrading to Firefox 4.x.
Users of affected systems should follow the recommendations provided by the product vendor and take immediate actions to mitigate the risk.
DITSOs (or your delegates) are also requested to inform the relevant system administrators and end users as appropriate about this issue.
More Information:
More information about the vulnerabilities is available at:
  • http://www.mozilla.org/security/announce/
  • http://www.mozilla.org/security/announce/2011/mfsa2011-12.html
  • http://www.mozilla.org/security/announce/2011/mfsa2011-13.html
  • http://www.mozilla.org/security/announce/2011/mfsa2011-14.html
  • http://www.mozilla.org/security/announce/2011/mfsa2011-15.html
  • http://www.mozilla.org/security/announce/2011/mfsa2011-16.html
  • http://www.mozilla.org/security/announce/2011/mfsa2011-17.html
  • http://www.mozilla.org/security/announce/2011/mfsa2011-18.html
  • http://www.mozilla.com/en-US/firefox/4.0.1/releasenotes/
  • http://www.mozilla.com/en-US/firefox/3.6.17/releasenotes/
  • http://www.mozilla.com/en-US/firefox/3.5.19/releasenotes/
  • http://www.mozillamessaging.com/en-US/thunderbird/3.1.10/releasenotes/
  • http://www.seamonkey-project.org/releases/seamonkey2.0.14/
  • http://www.us-cert.gov/current/index.html#mozilla_releases_firefox_updates1
  • https://www.hkcert.org/my_url/en/alert/11050301
  • http://www.vupen.com/english/advisories/2011/1127
  • http://secunia.com/advisories/44407/
  • http://secunia.com/advisories/44357/
  • http://secunia.com/advisories/44406/
  • http://xforce.iss.net/xforce/xfdb/67176
  • http://xforce.iss.net/xforce/xfdb/67177
  • http://xforce.iss.net/xforce/xfdb/67179
  • http://xforce.iss.net/xforce/xfdb/67180
  • http://xforce.iss.net/xforce/xfdb/67181
  • http://xforce.iss.net/xforce/xfdb/67182
  • http://xforce.iss.net/xforce/xfdb/67183
  • http://xforce.iss.net/xforce/xfdb/67184
  • http://xforce.iss.net/xforce/xfdb/67185
  • http://xforce.iss.net/xforce/xfdb/67186
  • http://xforce.iss.net/xforce/xfdb/67187
  • http://xforce.iss.net/xforce/xfdb/67188
  • http://xforce.iss.net/xforce/xfdb/67189
  • http://xforce.iss.net/xforce/xfdb/67190
  • http://xforce.iss.net/xforce/xfdb/67191
  • http://xforce.iss.net/xforce/xfdb/67192
  • http://xforce.iss.net/xforce/xfdb/67193
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0065
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0066
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0067
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0068
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0069
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0070
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0071
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0072
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0073
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0074
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0075
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0076
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0077
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0078
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0079
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0080
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0081
  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-1202

星期一, 5月 02, 2011

Confidential email - Failed to connect smart card or key file

Q: A user found that she cannot open CM in her Lotus Notes, the following message was displayed.
What should we do to prevent the user to met the token error when accessing confidential email?


Ans:
If the key file is exist then
    If e-token can locate the key file then
        restart Lotus Notes to try again
    else try to unplug the token and plug it before excute the LN
else try to replace the token.

星期日, 5月 01, 2011

win 7 如何才能搜尋文件內容

Q: 我的 Windows 7索引搜尋功能只能搜尋文件的檔案名稱,而在文件內的文字 (如:word 及 excel 裡的字串) 卻搜尋不到,請問可以如何調整呢?

A:

方法一:
在檔案總管裡,選左上的「組合管理」>「資料夾和搜尋選項」





在「搜尋」頁裡,將「搜尋目標」由「在已編製索引位置搜尋檔案名稱及內容。在未編製索引的位置,則只搜尋檔案名稱(I)」改為「一律搜尋檔案名稱及內容 (這可能需要幾分鐘)(C)」。







方法二:
新增索引位置。

推薦此文