timelessworks-blog
6 posts
Don't wanna be here? Send us removal request.
Text
Implementation of Caesar cipher in C
CODE
#include<stdio.h> char *encrypt(int key) { int x, f, i; char a[50]; static char b[50]; printf("Enter text to be encrypted\n"); scanf("%s",a); for(i=0;(a[i] != '\0');i++) { x = (int)a[i]; f = x + key; if(f < 97) f = f + 26; if(f > 122) f = f - 26; b[i] = (char)f; } return b; } char *decrypt(int key) { int x, f, i; char a[50]; static char b[50]; printf("Enter text to be decrypted\n"); scanf("%s",a); for(i=0;(a[i] != '\0');i++) { x = (int)a[i]; f = x - key; if(f < 97) f = f + 26; if(f > 122) f = f - 26; b[i] = (char)f; } return b; } main() { int ch, n; printf("Enter 1 or 2\n1. Encrypt text\n2. Decrypt text\n"); scanf("%d",&ch); printf("Enter key\n"); scanf("%d",&n); switch(ch) { case 1: printf("Encrypted text = %s",encrypt(n)); break; case 2: printf("Decrypted text = %s",decrypt(n)); break; default: printf("Sorry! Wrong choice"); } }
OUTPUT

0 notes
Text
Implementation of Atbash cipher in C
CODE
#include<stdio.h> char *crypt() { int m = 26, x, f, asc, i; char a[50], ch; static char b[50]; scanf("%s",a); for(i=0;(a[i] != '\0');i++) { asc = (int)a[i]; x = asc - 97; f = -(x + 1) % m; if(f == 0) f = -26; ch = (char)(123 + f); b[i] = ch; } return b; } main() { int ch; printf("Enter 1 or 2\n1. Encrypt text\n2. Decrypt text\n"); scanf("%d",&ch); switch(ch) { case 1: printf("Enter text to be encrypted\n"); printf("Encrypted text = %s",crypt()); break; case 2: printf("Enter text to be decrypted\n"); printf("Decrypted text = %s",crypt()); break; default: printf("Sorry! Wrong choice"); } }
OUTPUT

0 notes
Photo

Asus ROG Zephyrus G14
Asus has teamed up with AMD to double down on the trend of increasingly compact gaming laptops with the ROG Zephyrus G14, a 14-inch near-ultraportable with full gaming capabilities. The main attraction here beyond the petite size is a brand-new AMD Ryzen 9 processor. It's blistering fast across the board, equally ready for gaming and media workloads, and superior to the competition.
The Zephyrus G14 costs about $1,450 (~1,09,955 INR) and is outfitted with an AMD Ryzen 9-4900HS processor, an Nvidia GeForce RTX 2060 Max-Q GPU with 6GB of VRAM, 16GB of RAM, a 1TB SSD and a 1080p at 120Hz display. The elegant milky-white color that Asus dubs "Moonlight White" is slathered over it’s magnesium-alloy lid. Half of the lid is covered in mesmerizing microdots for the mini LED lights called the AniMe Matrix display. It also has a decent number of ports. On the left, there's the power jack, an HDMI 2.0b port, one USB Type-C port (DisplayPort 1.4) and a headphone jack. Meanwhile, the right side features a Kensington lock slot, two USB 3.2 ports and a USB Type-C port.
Specifications
OS: Windows 10 Pro
Processor: AMD Ryzen™ 9 4900HS
Graphics: NVIDIA® GeForce RTX™ 20606GB GDDR6 VRAM
Memory: DDR4 3200MHz SDRAM (Up to 32GB)
Storage: M.2 NVMe PCIe 3.0 512GB / 1TB
Display: 14-inch Non-glare Full HD (1920 x 1080) IPS-level panel @120Hz
WiFi: Intel® Wi-Fi 6 with Gig+ performance (802.11ax)
Bluetooth: Bluetooth 5.0
Dimensions: 32.4cm*22.2cm*1.99cm
Weight: 1.7kg
Pros
Killer AMD and Nvidia performance
Lightning fast SSD
Bright 120Hz display
Strong speakers
Longest-lasting battery
Elegant Moonlight White design
Cons
No webcam
Poor keyboard lighting
0 notes
Photo

We Steal Secrets: The Story of WikiLeaks (2013)
We Steal Secrets: The Story of WikiLeaks is a 2013 American independent documentary film about the organization started by Julian Assange, and people involved in the collection and distribution of secret information and media by whistleblowers. Directed by Alex Gibney, it covers a period of several decades, and includes considerable background material.
Alex Gibney is at his forensic best in fairly and lucidly telling the story of how the infinitely devious Julian Assange became the world's most famous whistleblower through his revelation on WikiLeaks of American state secrets, and of how one of his most significant sources, Pfc Bradley Manning, a lonely, idealistic, cross-dressing military intelligence analyst, had his identity revealed to the CIA by the young bisexual, possibly autistic hacker Adrian Lamo.
The film's title is provided by the plausible General Michael Hayden, who spent a decade between 1999 and 2009 as director of first the NSA and then the CIA. "We steal secrets. We steal other nation's secrets," he genially confesses.
Drawing on the testimony of more than 20 witnesses (though not Assange, who fell out with everyone, Gibney included), the film creates an astonishing picture of the complex new world of internet communications, intelligence and the ever-expanding web of post-cold war secrecy. It's into this fragile, ill-managed china shop that Assange, Manning and Lamo, the raging anti-establishment bulls, so recklessly charged, raising enough moral and ethical issues to occupy philosophers and political scientists for decades to come.
0 notes
Photo

The Internet's Own Boy: The Story of Aaron Swartz (2014)
The Internet's Own Boy: The Story of Aaron Swartz is a 2014 American biographical documentary film written, directed and produced by Brian Knappenberger. This passionate, fascinating, unapologetically partial but fair documentary celebrates Aaron Swartz, a programming-genius-turned-hacktivist, whose work and campaigning reshaped the internet, copyright law and activism itself.
Swartz was an open-access proponent who couldn’t even handle the supervision of university life. The need for freedom got him into trouble with the law. When he was caught sneaking onto the campus of MIT to download academic articles from the university’s servers, federal prosecutors were set on making an example of him. He was charged with 13 felony counts, which carried a potential penalty of 35 years in prison and $1 million in fines. After a two-year legal battle that sapped his spirit and drained his bank account, the 26-year-old hanged himself. Director Brian Knappenberger deftly elucidates the technical and legal aspects of the case, as well as Swartz's contributions to defeating the Stop Online Piracy Act and other significant achievements, such as developing the web feed format RSS and cofounding Reddit.
Illustrated by home-video material, news footage and testimony from friends and family, the film builds up a portrait of a brilliant, driven, complex young man who's likely to be an iconic figure in the future, a sort of digital-age Che Guevara.
1 note
·
View note