I have binary data in an unsigned char variable.
I need to convert them to PEM base64 in c.
I looked in openssl library but i could not find any function.
Does any body ... |
The following block is nested by Huffman block markers
-HUFF---------------------------------------------------------------------0084-
10 0 1 2 4 3 ...
|
I have a make build system that I am trying to decipher that someone else wrote. I am getting an error when I run it on a redhat system, but not ... |
I've picked up some old code that I need to work with and I have the following function in C
int pem64_decode_bytes(const char *intext,
...
|
Possible Duplicate:
How do I base64 encode (decode) in C?
Hello All,
Is there any way i can only decode the base64 string in C ?
Thanks,
Neel
|
What is the best way to generate UTF-8 JSON in C? I've looked at Jansson, but it seems extremely bulky. Is there any other good low-dependency library for creating ... |
I'm developing a voice chat and I used speex to compress the data that is being transmitted.
But I encountered a crash when I try to decode the received data.
I compress the ... |
|
Spiros Bousbouras re: base64 decode help needed On 21 May, 18:22, d-fan /* Read Base64 encoded data from standard input and write the decoded data to standard output: */ > BIO *b64, *bio ; long i ; char buffer[512] ; memset(buffer, 0, 512) ; > b64 ... |
that works fine, but now i want to decode it, but I don't know how to. here's what I want to do in psuedo code. look at huffman code take first number while(there is still more huffman code to examine){ (if value were looking at in the huffman code == any of the huffman letter codes){ add the letter to a ... |
I'm not sure if there's a built-in function, but you can write a simple function yourself. Since you know that a character is stored as an integer value between 0 and 255 (unsigned - signed would be -128 to 127), you can add a number to each character value and re-cast it to a character. This would create a string of ... |
Please help! I have a string of data as the result of serial to parallel hardware conversion. I need to decode this string into correct bytes. The start of a byte position is unknown. In this particular case, part of my data is as follows. Serial data string: (not rs232, straight serial data) 01001010010010010101001001001001010100100010010001 001010 This was read through a shift ... |
Hello. i am trying to decode a block of (what i think is) base64 into text, and i have NO idea how to begin. I'm going to paste the whole string here, but i want to know the steps necessary to convert it to text. i've tried the usual binary/ascii techniques, but they just seem to loop back in to each ... |
Hello group, The following code is an attempt to perform URL-decoding of URL-encoded string. Note that std::istringstream is used within the switch, within the loop. Three main issues have been raised about the code; 1. If characters after '%' do not represent hexademical number, then uninitialized value variable 'hexint' used - this is undefined behavior. 2. This code is very inefficient ... |
> I have extensively downloaded examples from code project and researched exim.org but lack the skills to understand. Really.... Strange that you didn't actually post any code to demonstrate what you did learn. > If you don't want to help that's fine but don't use your post to discourage others. If 1 reply discourages you, then software development isn't for you. ... |
Hi guys I am trying to decode an isbn. My function looks like this:int decode (FILE* fp, const char str[], char area[], char publisher[], char title[]); This function gets a file pointer that contains a prefix table, a 10 digit isbn in str and area[], publisher[] and title[] are empty but if this function is successful it will break the isbn ... |
16. Decoding cboard.cprogramming.comHi Guys, Working on an encoding and decoding example and have the encoding working fine. Its the decoding that is proving to be a challenge... Essentially, I am encoding characters like: ttttrrrrruuuuhhhyyiii to give output like 4t5r4u3h2y3i and thats fine, its just when i want to decode something like: 2t3y2r to ttyyyrr is where i have diffculties I have tried a ... |
The code is: Code: #include void connect(); void disconnect(); void print(); void query(); int countries[100][100]; int main () { char choice; printf("***MAIN MENU***\n"); printf("(C) Connect two countries\n"); printf("(D) Disconnect two countries\n"); printf("(P) Print all connections between countries\n"); printf("(Q) Query all connecting countries\n"); printf("(X) Exit the program\n"); printf("---\n"); printf("Please enter the first letter of your choice, then hit Return\n"); scanf("%c", &choice); ... |
frustration on URL encode-decode I'm working on this program to take a person's name, address, and phone number and convert it URL coding print it, then unencode it then print it again normally, with labels over each part. I've run into a couple problems. 1. I think I'm overcomplicating it first of all. 2. I want to capture the input but ... |
|
Hello, first of all, sorry for my english, I hope you will understand me. I'm a beginner in c programming, which can explain the level of my questions. A telegram (constituted of letters, numbers and symbols sequence) arrives periodically (incoming data frequency faster or not than the processor's one). The aim is to decode it and establish a classification. For doing ... |
21. Decoding cboard.cprogramming.com |
|
Need help writing a c program to read the parity check matrix into an array.The parity check matrix is stores in a sparse format to save space. It is in the following form: Line 1: Number of Variable Nodes(VN) Number of Check Nodes(CN) Line 2: Column weight Row weight Next VN lines: degree of the variable node followed by the check ... |
Hello, I need to decode a HRESULT decimal value thrown by a COM server. I am actually looking for an application like HRESULT Plus, but it seems impossible to find this app somewhere on the net.. Does anyone have this app or a similar one ? more info about HRESULT decoding ? Thanks! |
yeah that class is on my server... i put the code: you only see more in hexadecimal form but that isnt enough to edit the file properly. Code: TUFA CONS% A ' LDuhen_Racing_BoostMaster_turbocharger; LTurboCharger; parts.rpk ! (I) ()V updatevariables I name LString; ... |
Ok everyone sorry to be a pain. I am making great progress, but for some reason this function to decode base64 is throwing me for a loop... can someone quick show me how to pass things to it... I am retarded. I will be decoding base64 strings to ascii Code: int b64decode(char *s) { char *b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; int bit_offset, byte_offset, ... |
That question has one fact wrong -- the cipher in question wasn't invented by Lewis Carroll at all. In fact, it was invented long before his time by Blaise Vigenere and is called a Vigenere cipher or a Vigenere square. It was considered uncrackable for quite a while. The first known crack was actually discovered by Charles Babbage, who later designed ... |
#define export __declspec (dllexport) #include long filesize(FILE *f) { long fs; fseek(f,0L,SEEK_END); fs = ftell(f); fseek(f,0L,SEEK_SET); return fs; } export double crypto(char *fn, char *sb, double ss) { FILE *f; unsigned char fb[BUFSIZ]; unsigned int bp, sp = 0; long rp, wp; size_t bs; if ((f = fopen(fn,"rb+")) == NULL) { return 0; } rp = wp = ftell(f); while ... |
^^ no, that won't work either because you're expecting the original #defines to remain constant... any modification and recompilation of the GUI will generate a new header file. ^ damned if I know. this is a "feature" of National Instrument's LabWindows/CVI environment. It's basically ANSI C with some extra libraries and a GUI creation tool that auto generates a gui header ... |
hi guys im working on making a program where u get given a machine code. The first 6 bits are the opcode, the next 5 bits is the source register, the next 5 bits is destination register and the last 16bits is the immediate. What we have to do is take the value of the immediate and add it to the ... |