About 5,290,000 results
Open links in new tab
  1. How do I base64 encode (decode) in C? - Stack Overflow

    Dec 4, 2008 · #include <string> std::string base64_encode(unsigned char const* , unsigned int len); std::string base64_decode(std::string const& s); Usage. const std::string s = "test"; std::string encoded = base64_encode(reinterpret_cast<const unsigned char*>(s.c_str()), s.length()); std::string decoded = base64_decode(encoded);

  2. Encoding and Decoding text in c - Stack Overflow

    Oct 7, 2013 · Decoding is the other way around, just use the binary as lookup table instead. If performance is important, consider implementing this using binary search. It is an ideal example of where binary search should be used (sorted data, no duplicates).

  3. Decode a string recursively encoded as count followed by …

    Feb 24, 2025 · A string is said to be palindrome if the reverse of the string is the same as the string. In this article, we will learn how to check whether the given string is palindrome or not using C program. The simplest method to check for palindrome string is …

  4. Encoding and Decoding, Part I | C For Dummies Blog

    Oct 24, 2015 · A simple example of encoding would be to input a string as text and output that string as its ASCII code values, using either decimal or hex values. Send those values into another program to decode and retrieve the original text.

  5. Decode String - C Solution - Source Code Examples

    This blog post explores a fascinating problem in string manipulation using C programming: decoding a string that follows a specific encoding rule. This challenge is an excellent exercise in understanding stacks and string operations, commonly used in parsing and interpreting data.

  6. Joymon V/S Code: C program to encode and decode string

    Jun 20, 2017 · 1.Get a string of chars from user. 2. Convert string to array of chars (each char has value 0~255) 3.Define a lookup table (LUT) and an algorithm to encode the char values. 7.Output the decoded array of integers to prove that your algorithm can decode. I seriously programmed in C when I was in college and during my job seeking.

  7. Program to encode and decode string - C Programming

    Read text and print its decoded form until a character :: is found. void entryData(); void decodeFile(); int indexPosition(char); char getEncodeChar(int); char getDecodeChar(int); void getWriteFileName(char *str); void getReadFileName(char *str); char alpha[26] = "abcdefghijklmnopqrstuvwxyz"; char filename[14]; char readname[14];

  8. Program to encode and decode given string - C Programming

    Write a program that encode and decodes user input string. Download Sourcecode for Program to encode and decode given string (Size: .39 KB) void main(){ charstring [50],tmp[50]; int spcnt[50],i,j,c; clrscr(); printf("Enter a string : "); gets(string); //encode logicfor (i=0; string [i];i++){ string [i]= string [i]+3; textcolor(GREEN);

  9. C Implementation of Base64 Encoding and Decoding - MYCPLUS

    Feb 15, 2024 · Base64 Encoding and decoding C Program. This is a very simple implementation of base64 encoding and decoding in C programming language. There are number of C libraries available for encoding and decoding as well i.e. libb64, OpenSSL Base64, Apple’s Implementations, arduino-base64 etc.

  10. Decoding a String – Solution | C For Dummies Blog

    To build the character, the main () function uses values stored in variables a and b: digit plus the previous digit in. byte */ . The value of a shifted left four places and b retained. The result is the encoded value, which is added to the previous character output, stored in variable byte.

  11. Some results have been removed
Refresh