9:57 am, 4 december 2025
this is my fucking world. lets go then.
we woke up, in karwar, did breakfast etc. and went to the beach. the waves were actually crazy tall, like much taller than me (over the surface). but this was so fun. its to achive all our dreams now. i aint stopping. EVER.
I wanna start doing cryptopals; and that too in python, to teach myself python and crypto duh. lmao. letsgo.
10:52 am
I was playing around with tweeks (this yc company
I made crpyotpals like this haha.
this is really fucking goated bruh. so inspirational. lets get started now.
i wanna complete set 1 before leaving.
11:04 am
let's get it started then.
1 hex=4 bits. 8 bits=1 byte. we should operate on bytes, not raw strings...
11:24 am
lets get started frfr now.
i aint gonna use no libraries tho
11:48 am
we gotta check out now... but yuh; cryptopals in python with no libraries is really going to be fun as fuck it seems. great fior learning python too yuh. lesgo.
12:06 pm
ok man, lets go then. we're bout to check out of karwar; photo dump in a bit lmao. but yuh, today, my goal is, not even goal, like imma do this shit with urgency; ie. imma complete cryptopals set 1; fully in python, no libraries; im gonna do some enumerative combinatorics or grpah theory, and imma make my bbblogging platform, no vibecode, before leaving for delhi. lets goooo, this shits gonna be fun as fuck.
6:33 am, 5 dec 2025
time can literally fly by man. its literally flying by. i became one of the best itw at raw problem solving, off like so little work. i know i can be the best in the world. i need to go be the best ever. we're not going to stop for not a single second now. lets fucking go then. cryptoapsl.
7 am
bytes and bits thing was confusing as fuck. i understand now tho, we always operate on bytes; computer deals only with bytes. hex and base64 make complete sense now.
9:18 am
i am going to say this: i cannot let time pas by. no. nmo. no. one year, 2 years going by like this.??? aint no way man . lets work.
9:36 am
ok a very basic level of python revision is done now. onto cryptopals now.
9:40 am
doing set 1; challenge 1 now..... this si sooooo fucking funnnn. i wanna work every single moment of my lifeeee man. lets fucking gooooo work. woohooo. all the way up bruh. lets do our best every single dayyyy. every single momeny. not doing this shit would piss me off so much man, lets work.
11:40 am
we're checking out rn...
i finally completed set1challenge1
there was a bunchhhh of stupid ass debugging i had to do, but yuh, i wrote this shit from scratch. fr tho man, let's move on to the hard things bruh.. i wanna do sooooo much shit frfr, i aint stopping at all nigga. im telling you we aint stopping bruhhhh
be excited about life and go achieve all your dreams then bruh, lets workkkk. we aint stopping at alll!!!
#int->binary converter
#do int(s,base) for conversion to int then use int to bin converter.
#idea is first; convert each hex into 4 bits
#join two chars at a time to get one byte. and then get a bunch of bytes
#group three bytes
#write a 3bytes->4char converter
def inttobin(n):
if (n==0):
return "0"
if (n==1):
return "1"
else:
return inttobin(n//2)+str(n%2)
def bitsfromhex(h):
#ok problem is 1 should give us 0001 not 1...
s=inttobin(int(h,16))
a=""
for i in range(4-len(s)):
a+="0"
a+=s
return a
def bytesfromhex(h): #h is a hex string
v=[]
for i in range(0,len(h),2):
v.append(bitsfromhex(h[i])+bitsfromhex(h[i+1]))
return v
def intto64(n):
lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
if (n less than 64):
return lookup[n]
else:
return intto64(n//64)+lookup[n%64]
def _3bytesto64(v): #v is a 3 byte vector
s=v[0]+v[1]+v[2]
a=[0]*4
for i in range(4):
a[i]=intto64(int(s[6*i:(6*i)+6],2))
return a[0]+a[1]+a[2]+a[3]
#3 bit vector thing works perfect...
def bytesto64(v):
s=""
for i in range(0,len(v),3):
a=v[i:i+3]
s+=_3bytesto64(a)
return s
hexstr="49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"
v=bytesfromhex(hexstr)
a=bytesto64(v)
print(a)
this is the code i wrote
tweeks is so fuckng inspirational too btw
but yuh, we going to the airport now lesgoooo!!!!
5:07 pm
I just completed set 1 challenge 2... this was much easier cos of my prev code. fun shit.
flights about to land now. im telling you we are gonna keep workinggggg... next time im on a flight im the best ever...
lets gooooo, workkkk... lets have funnnn!!!!
i think i almost cracked the S_n(321) also... (the number of 321 avoiding n permutations)
the idea is to look at the first time that f(i)=i;
then the first i-1 things must be in [i-1] adn the rest must be in [i+1,n]
so you get the f(n-i) factor... the first term is the number of 321 avoiding i-1 permutations which never have f(j)=j.
okkk, the catalan is f(n)=\sum(i=1,,n) f(i-1)*f(n-i)
so how can we get the f(i-1) factor...
i dont swe the exact idea right now.
wtv, we're back in delhi.
by the end of this year, i should know i am the best tehre has ever fucking been. lest have fun and do our asbolute best every single fucking day.
5:57 pm
reached delhi airport, in the coffee store right now. this is really going to be fun as fuck man....
ok let me reaosn about the 321 thing more carefully...
let f(n)=S_n(321)
then, we gotta note that f(n)=\sum_a+b=n-1 f(a)f(b) is what we want (catalan)
let g(n) be the number of 321 avoidiing things which have no fixed point...
then f(n)=\sum_{i=1}^n g(i-1)*f(n-i) + g(n)
g(0)*f(n-1)+g(1)*f(n-2)+...g(n-1)*f(0)+g(n)
this is not good...
ok i need to leave now... ill come and think about this shit,...
8:09 pm
yuh we in the metro right now... lesgoooo this shit is fun as fuckkkk!!!!
im doing cryptopalssssss, woohoooooo.
all the way up!!!
like literally man, we're gonna be working hard like this all day every single dayyyyy. and we gonna achieve all our dreams, and gonna have soooo much fun every single dayyyyy woohooooooo. challenge 3 now!!!
8:34 pm
i understand how text, xoring against chars works now... ascii too....
i am going to be the ebst ever... all the way up
12:55 am
i'm back home. i am going to be the best ever. life is real man. arihant had come to my house. life is actually real. i am going to achieve all of my dreams.
all the way up
1:09 am
challenge 3 is done; the manual way... i havent written a statistic finder yet... but the answer is "X" is the character you xor with...
cooking mc's like a pound of bacon
yuh
this is the code:
def sxor(a,b):
s=""
for i in range(len(a)):
s+=str(int(a[i])^int(b[i]))
return s
def xorchar(b,c): #xor byte b against character c...
cc=f"{ord(c):08b}"
return sxor(b,cc)
def fullxorchar(v,c): #in ascii form
s=""
for x in v:
a=xorchar(x,c)
n=int(a,2)
s+=chr(n)
return s
hexstr="1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736"
v=bytesfromhex(hexstr)
for i in range(128):
print(i,fullxorchar(v,chr(i)),sep=" $$$$$$ ")
yuh
12:30 pm, 7 December 2025
ok yuh, im just gonna have fun non stop, like just not stop workign at all
i was explaiing this to arihant also; that this is like most important time of our life, like we need complete urgency, wasting a single second is not allowed.
ok so i have done challenge 3; but that was manual.... im trynna think of a way to automate it.
so lilke i wanna think of a function; which can basically sort of "rate" a string for possibility that it is english if that makes sense.
im rediscovering everything, so im kinda forgetgina about corelation coeficient ect.
9:50 pm 8 Devember
youre a genius. so go do everything youve ever wanted man
lets go be the best ever.
nigga shit aint sweet out here
8:05 pm 10 december
the last couple days were fun with maahi. no time to waste. every single day i need this.
i talked to mummy and kkuku about my dreams. i really love them so much. they believe so much in me. i am going to go achieve every single thing ive said i want to. watch me
trying a codeforecs problem sagnik sent right now.
9:37
kets work tonight
no time
urgencyyyy
10:02 pm
i am going to achieve everythig ive ever wanted. fuck everythiung else, hoenstly man. lets just go live out our dreams. all the wya up