tsukikage: (Default)
[personal profile] tsukikage
HASH(0x8d653c0)
Polymorphous Light Eruption.Put down the sun you

fool!


Which disease are you?
brought to you by Quizilla


You know what I hate? Just KNOWING that you're totally screwing something up:
;;; Step 3

(define base 11)
(define prime 99991)

; Fill your secret key in here
(define my-secret 1985)

; Procedure to compute public key from secret key
; Should return: (base ^ secret) mod prime
; Hint: Use the expmod function defined above.
(define (make-public base secret prime)
(expmod base my-secret prime)
)

(define my-public (make-public base secret prime))

They can't possibly want us to do something so... Redundant.

[EDIT: Yay! I finished lab two successfully! That bit of redundancy might get me docked on style, but the program works, so... But I just realized... I need to comment this thing... Ugh.]
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

tsukikage: (Default)
tsukikage

July 2017

S M T W T F S
      1
2345678
910 1112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 10th, 2026 06:26 am
Powered by Dreamwidth Studios