an observation
an observation
z1=a^x mod p
z2=a^y mod p
s1=(a^x mod p)^y mod p = a^xy mod p
say we know x1 for which z1 is true
z3=a^u mod p
s2=(a^u mod p)^x mod p = a^xu mod p
a=7 p =11
;
z1=a^x mod p
z1=3
possible values of x
4,14,24,34,44,54,64,74,84,94
;
z2=a^y mod p
z2=5
possible values of y
2,12,22,32,42,52,62,72,82,92,
;
z=a^xy mod p=7^8 mod 11 = 9
z=a^xy mod p=7^28 mod 11 = 9
z=a^xy mod p =7^48 mod 11 = 9
z=a^xy mod p=7^168 mod 11 = 9
Generically
if z1=a^x1 mod p =a^x2 mod p
and
z2=a^y1 mod p =a^y2 mod p
then
z=a^(x1y1) mod p = a^(x1y2) mod p =a^(x2y1) mod p = a^(x2y2) mod p and so on.
z2=a^y mod p
s1=(a^x mod p)^y mod p = a^xy mod p
say we know x1 for which z1 is true
z3=a^u mod p
s2=(a^u mod p)^x mod p = a^xu mod p
a=7 p =11
;
z1=a^x mod p
z1=3
possible values of x
4,14,24,34,44,54,64,74,84,94
;
z2=a^y mod p
z2=5
possible values of y
2,12,22,32,42,52,62,72,82,92,
;
z=a^xy mod p=7^8 mod 11 = 9
z=a^xy mod p=7^28 mod 11 = 9
z=a^xy mod p =7^48 mod 11 = 9
z=a^xy mod p=7^168 mod 11 = 9
Generically
if z1=a^x1 mod p =a^x2 mod p
and
z2=a^y1 mod p =a^y2 mod p
then
z=a^(x1y1) mod p = a^(x1y2) mod p =a^(x2y1) mod p = a^(x2y2) mod p and so on.
- Rook Zimbabwe
- Addict
- Posts: 4326
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Well all it evoked from me was a figure or eight sort of motion with my finger near my head thinking it's a bit loopy and I thought strange I don't really see what the attraction is.
edited: sedate version
Code: Select all
Global lzx.f=0;
Global lzy.f=20;
Global lzz.f =22;
If InitSprite() = 0
End
EndIf
If OpenWindow(0, 0, 0, 640, 480, "It's a bit loopy and I thought strange I don't really see what the attraction is", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_ScreenCentered)
If OpenWindowedScreen(WindowID(0), 0, 0, 640, 480, 1, 0, 0)
For a = 0 To 10
CreateSprite(a, 20, 20 )
If StartDrawing(SpriteOutput(a))
Circle(10, 10, 2 ,RGB(Random(255),Random(255),Random(255)))
StopDrawing() ; This is required when drawing operations are done. Never forget it!
EndIf
Next
EndIf
Repeat
Repeat
Event = WindowEvent()
If Event = #PB_Event_CloseWindow
End
EndIf
Until Event = 0
FlipBuffers()
ClearScreen(RGB(0, 0, 0))
StartSpecialFX()
If a > 10
a=0
EndIf
lzx + (0.015*(-10*lzx+10*lzy));
lzy + (0.015*(28*lzx-lzy-lzx*lzz));
lzz + (0.015*(-8*lzz/3+lzx*lzy));
x = (lzx*10) + 320;
y = (lzz*10) - 20;
DisplayTranslucentSprite(a, x, y,lzz*3)
StopSpecialFX()
a+1
Delay(1)
ForEver
EndIf
Last edited by idle on Wed Jul 23, 2008 9:20 pm, edited 4 times in total.
o.o
When i run without compiler, avast say me "PureBasic_Compilation4.exe" is infected by the virus Win32:KdCrypt [Cryp]
I never had this with another code on Pb..
I have made an analys of my Hd at reboot, no Win32:KdCrypt [Cryp], i restart this without compiler : Win32:KdCrypt [Cryp] again o.o
I have tested some other codes, no Win32:KdCrypt [Cryp] o.o
It leads me to wonder this code looks pretty near of this virus when .exe created..
Someone have the same thing with avast ? It's weard !
When i run without compiler, avast say me "PureBasic_Compilation4.exe" is infected by the virus Win32:KdCrypt [Cryp]
I never had this with another code on Pb..
I have made an analys of my Hd at reboot, no Win32:KdCrypt [Cryp], i restart this without compiler : Win32:KdCrypt [Cryp] again o.o
I have tested some other codes, no Win32:KdCrypt [Cryp] o.o
It leads me to wonder this code looks pretty near of this virus when .exe created..
Someone have the same thing with avast ? It's weard !
For me it should be more look like a strange cyber-punk thriller focused on an miding spontaneous virus ( 'seen PI yeasterday )Just got to stick on a Prodigy CD and we have the makings of a rave! Laughing Laughing
- Rook Zimbabwe
- Addict
- Posts: 4326
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact: