How Good is the NSA or are Pro hackers at...

0 Oussama Fahchouch · June 14, 2015
Hi,

How good is the NSA or are pro hackers at encrypting and decrypting files, and documents?

I am following the course application developer, and i asked the teacher for some extra assignments. He gave me some, i am at the third now. The third is asking me to make an class that can encrypt and decrypt documents. 

With some help from 2 programmers, 1 here on thenewboston forum and 1 at school it succeeded. Now some questions arise.

How good are those secret groups like the NSA in encrypting and decrypting. And how good is the individual hacker in this? Or how good are the best crackers in this?

Peace.

Post a Reply

Replies

Oldest  Newest  Rating
0 c student · June 14, 2015
anyone can encrypt files.  usually people who are in the field of math and statistics try to break ciphers.  afaik, nsa cannot decrypt public key cryptography like rsa and symmetric block ciphers like aes and blowfish with a reasonable amount of key bits.
0 Oussama Fahchouch · June 14, 2015
I learned to encrypt and decrypt a document within a few hours in php. But can you explain to me how complex this looks at the level of those big companies you named?

I am kinda interested in the level of encrypting they do..

Mine as a noob looks like this in the php language..



class Geheimschrift{
// functie codeer(.) encrypt de gegeven data in de parameter
function codeer($data){
$dataSplit = str_split($data, 1);                     // maak van elke character in $data een individuele waarde, deze wordt opgeslagen in de array
$encrypt   = "";                                     // sla deze later op in variabele $encrypt, na encryptie

foreach($dataSplit AS $key => $value){               // foreach loop, voor elke waarde in de array:
$value    = base_convert(ord($value), 10, 8);     // wordt: deze veranderd naar 8/octaal getal, nadat deze eerst is veranderd in een 10-talig getal
$encrypt .= $value;                               // -> De encryptie wordt per individuele waarde opgeslagen in een variable
}

return $encrypt;        // return gegeven encryptie
}
    // de functie decodeer(.) decrypt de gegeven data in de parameter
function decodeer($data){
$dataSplitB = str_split($output, 3);                        // maak van elke character in $data een individuele waarde, deze wordt opgeslagen in de array
$decrypt    = ""; // sla deze later op in een variabele $decrypt, na decryptie

foreach($dataSplitB AS $keyb => $valueB){   // foreach loop, voor elke waarde in de array:
 $valueB   = chr(base_convert(ord($valueB), 8, 10)); // wordt: deze veranderd naar een 10-talig getal, nadat deze eerst is een 8/octaal getal was
 $decrypt .= $valueB; // -> De decryptie wordt per individuele waarde opgeslagen in een variable
}

return $decrypt; // return gegeven decryptie
}
}
0 Oussama Fahchouch · June 14, 2015
Sorry, but it contains also dutch comments, because it was a assignment for school.
0 Oussama Fahchouch · June 14, 2015
Here it is without comments:


class Geheimschrift{

function codeer($data){
$dataSplit = str_split($data, 1);
$encrypt   = "";

foreach($dataSplit AS $key => $value){
$value    = base_convert(ord($value), 10, 8);
$encrypt .= $value;
}

return $encrypt;
}

function decodeer($data){
$dataSplitB = str_split($output, 3);
$outputB    = "";

foreach($dataSplitB AS $keyb => $valueB){  
 $valueB   = chr(base_convert(ord($valueB), 8, 10));
 $decrypt .= $valueB;
}

return $decrypt;
}
}
0 c student · June 15, 2015
well, here's blowfish's algorithm: https://en.wikipedia.org/wiki/Blowfish_%28cipher%29

if you want to look through how rsa encrypts with exponentiation, you can have a look at how it's done here https://en.wikipedia.org/wiki/RSA_%28cryptosystem%29
0 Donald Genes · August 20, 2015
 @ C Student


How do we use it this code is the main question?
0 Oussama Fahchouch · September 6, 2015
I did have a break for 2 months and i am like wtf how did i write this code. At the moment it feels like i am drunk when coding.

1 ADVICE, don't stop for 2-3 months ( vacations ), atleast code 1 hour a day or something.. >.<

(I am just a 1 year experienced beginner programmer..)
0 Colonel Panic · September 8, 2015
Use GPG, or PGP

Good article on how to do it in python. 

http://www.saltycrane.com/blog/2011/10/python-gnupg-gpg-example/
  • 1

Other Computer Related

107,005 followers
About

Anything else technology related including search engines, social networking, marketing, and more!

Links
Moderators
Bucky Roberts Administrator