Re: The Purpose of Encrypting Code? Programming Web Development by Jessfly Encyrption is used to secure data, mostly used for payments, password related issues and for some VIP materials. We prefer to encrypt passwords to-from database. But its a mess to encrypt total php file. Anyway, there are lots of software to do encrypt-decrypt. Array problem in C Programming Software Development by lotusdream … bit in b. */ b = b >> 1; } return y; } //Encyrption function //Assume our plain-text is M int *encyrpt(int… bit in b. */ b = b >> 1; } return y; } //Encyrption function //Assume our plain-text is M int *encyrpt(int… Recommended hardware for personal server Hardware and Software Linux and Unix by joey_r … to build a Centos mail server, file server, try some encyrption, ssh, just learn and build something. Anyway, what would you… Encryption Programming Software Development by joshuawilson11 …: import random #=============================================Main Menu============================================= print("Hi, Welcome to Text Encyrption") print("This program will encrypt or decrypt a… Re: Laptop not comminicating with wireless router Hardware and Software Networking by ardentsunshine uh really need more info. Do you have encyrption on the router if so make sure the type and the password matches between both. Make sure DHCP is enabled on the router and card. Re: Replacing in a list Help! Programming Software Development by joshuawilson11 … import random #=============================================Main Menu============================================= print("Hi, Welcome to Text Encyrption") print("This program will encrypt or decrypt a… Re: Array problem in C Programming Software Development by WaltP >Hi everyone,I'm tryind to do something about sound on linux.I basically record some sound and try to encyrpt it using algorithm.However,I encountered some sort of pointer problem.Both RSA algorithm and recording&listenin sound works properly. - - - Basically,Rsa works with ascii array which includes char's of my word and encyrpt/decyrpt … Re: Array problem in C Programming Software Development by lotusdream I said "Therefore I didnt combined both RSA and sound algortihms in 1 one code." I have tried in first code but it does not work.In order to you see working algorithms RSa algortihm and writing to sound card,I have send last 2 code to you. > printf("Say something:\n"); > read(sound_device, buf, sizeof(buf… Re: Array problem in C Programming Software Development by lotusdream Basically I need some code that is it reserves some int array depending the size of buffer which is char, and then send this int array to enc function and that returns int array.In main, want to hold to returning int array from enc function another int array. Thanks Re: Array problem in C Programming Software Development by Sokurenko dont use sizeof. do track memmory manually or use static buffers for now, and if everything works, try to change them Re: Array problem in C Programming Software Development by Schol-R-LEA First off, you might want to use [`calloc()`](http://www.cplusplus.com/reference/clibrary/cstdlib/calloc/) rather than `malloc()` for allocating arrays: ascii=(int *)calloc(24000, sizeof(int)); It's a minor point, as there is no real difference in it result-wise, but it does make it clearer what your intent is. Also, you are allocating … Re: Array problem in C Programming Software Development by Schol-R-LEA I'd like to give you two more pieces of advice: first, separate the encryption and decryption code from the sound card code, and the sound card code from the main() function, and compile them separately, linking them together only once you tested the two library sections. Second, you really want to trim your #includes; you have multiple entries … Re: Array problem in C Programming Software Development by Schol-R-LEA I've done some experimenting with your code, and modified it somewhat for testing, but I found serious issues with it. The test code I came up with is as follows: rsamath.h /* rsamath.h */ #ifndef RSAMATH_H #define RSAMATH_H int gcd(int a,int b); int findD(int e,int n); int squareMul(int a,int b,int n); int … Re: Array problem in C Programming Software Development by Schol-R-LEA At the risk of completely highjacking this thread, I have been working on getting my own version of this code going, and have had a certain amount of success. However, I wanted to change the key generation to use generated primes based on a passphrase, rather than the constant primes of the original. It is in my primality tester that I seem to be … Re: Array problem in C Programming Software Development by Schol-R-LEA I am beginniong to suspect that the problwem lies with my randomization function. Is there some bias in it that I am not seeing? /* generate a 64-bit unsigned random number */ uint64_t rand_u64() { return ((uint64_t) rand() + (((uint64_t) rand()) << 32)); } Re: Array problem in C Programming Software Development by Schol-R-LEA Setting aside the encryption code for the moment, I took a look at the sound card code, and found something potentially problematic. The program as written uses /dev/dsp, which is the OSS sound device; but most modern Linux distros use ALSA for sound support, and not all of them have backwards compatibility support for OSS (my own Linux partition, … Re: Recommended hardware for personal server Hardware and Software Linux and Unix by khajvah I dont know about server, but can you please tell me what book you read? Again it is few months that i use Arch linux... Re: Recommended hardware for personal server Hardware and Software Linux and Unix by JorgeM Since it sounds like you are interested in learning and improving your skills, have you considered setting up a good host computer and running a virtualization application that can host serveral virtual machines? This is a really good and cost effective approach in building a virtual computer lab. On the host computer, you would install a virtual… Re: Recommended hardware for personal server Hardware and Software Linux and Unix by joey_r @khajvah The very first book I read was the "Linux Command Line Introduction" and I recommend it to any beginner. But as you are using Arch you're probably advanced, The Linux Programmer's Toolbox was the last book I read and it was pretty great. http://www.amazon.com/Linux-Programmers-Toolbox-John-Fusco/dp/0132198576/ref=… Re: Encryption Programming Software Development by Schol-R-LEA I don't think you actually would want to treat the spaces (or whitespace in general) any differently from the other plaintext, actually; you want to write the ciphertext out in a form that gives as little information as possible to a cryptanalyst, so enciphering the whitespace would make more sense. You don't want to store or write the ciphertext … Re: Encryption Programming Software Development by joshuawilson11 Okay thanks, although my course work days if it is a space then it should not be encrypted. It's GCSE so it is rather basic although I understand where you are coming from, the course work wants the cipher text to be saved onto the computer. Many thanks! Re: Encryption Programming Software Development by Schol-R-LEA Ah, I didn't realize that was an actual requirement of the assignment. Sorry. One thing I will strongly recommend is reorganizing the program into functions, so that it is easier to read, and less redundant. Here is what I came up with (though it doesn't take into account the spaces issue): from random import randint from statistics … Re: Encryption Programming Software Development by joshuawilson11 Thanks a lot, really helpful should be able to work my way back to involve spaces but that's great!