¡@

Home 

c# Programming Glossary: base64

Python: Inflate and Deflate implementations

http://stackoverflow.com/questions/1089662/python-inflate-and-deflate-implementations

a call such as the following result_data zlib.decompress base64_decoded_compressed_string I receive the following error Error.. as result_data gzip.GzipFile fileobj StringIO.StringIO base64_decoded_compressed_string .read I receive the error IOError.. encode me is run through the Python Zlib.compress and then base64 encoded the result is eJxLSU3LSSxJVUjMS1FIzUvOT0lVyE0FAFXHB6k..

Code for decoding/encoding a modified base64 URL

http://stackoverflow.com/questions/1228701/code-for-decoding-encoding-a-modified-base64-url

for decoding encoding a modified base64 URL I want to base64 encode data to put it in a URL and then.. for decoding encoding a modified base64 URL I want to base64 encode data to put it in a URL and then decode it within my.. .NET I want to modify my current code from doing basic base64 encoding and decoding to using the modified base64 for URL method...

Password encryption/ decryption code in .NET

http://stackoverflow.com/questions/1678555/password-encryption-decryption-code-in-net

a given password and returns the encrypted data as a base64 string. summary param name plainText An unencrypted string that.. string that needs to be secured. param returns A base64 encoded string that represents the encrypted binary data. returns.. encrypted ProtectedData.Protect data null Scope return as base64 string return Convert.ToBase64String encrypted summary Decrypts..

Get timestamp from Authenticode Signed files in .NET

http://stackoverflow.com/questions/3281057/get-timestamp-from-authenticode-signed-files-in-net

public const int CERT_QUERY_FORMAT_BINARY 1 the content is base64 encoded public const int CERT_QUERY_FORMAT_BASE64_ENCODED 2.. 1 CERT_QUERY_FORMAT_BINARY the content is base64 encoded public const int CERT_QUERY_FORMAT_FLAG_BASE64_ENCODED..

byte[] to hex string

http://stackoverflow.com/questions/623104/byte-to-hex-string

a more compact representation you can use Base64 string base64 Convert.ToBase64String data Result AQIECBAg Added By OP My test..

GETting a URL with an url-encoded slash

http://stackoverflow.com/questions/781205/getting-a-url-with-an-url-encoded-slash

but I cannot see what else could be meant. c# .net http base64 url encoding share improve this question By default the..

Authentication Service using WCF

http://stackoverflow.com/questions/9584198/authentication-service-using-wcf

md5 etc of everything after the first pipe. You can then base64 encode the result and pass it around. Validating the token could..

Really simple short string compression

http://stackoverflow.com/questions/1192732/really-simple-short-string-compression

to a string which needs to be valid as part of a URL e.g. Base64 will negate any benefit you gained from the compression. Storing..

Code for decoding/encoding a modified base64 URL

http://stackoverflow.com/questions/1228701/code-for-decoding-encoding-a-modified-base64-url

then decode it within my HttpHandler. I have found that Base64 Encoding allows for a ' ' character which will mess up my UriTemplate.. Then I found that there is a concept of a modified Base64 for URL from wikipedia A modified Base64 for URL variant exists.. of a modified Base64 for URL from wikipedia A modified Base64 for URL variant exists where no padding ' ' will be used and..

QueryString malformed after URLDecode

http://stackoverflow.com/questions/123994/querystring-malformed-after-urldecode

malformed after URLDecode I'm trying to pass in a Base64 string into a C#.Net web application via the QueryString. When.. way to handle this server side Example http localhost 3399 Base64.aspx VLTrap VkxUcmFwIHNldCB0byAiRkRTQT8 PE0iIHBsdXMgb3IgbWludXMgNSBwZXJjZW50Lg..

Getting incorrect decryption value using AesCryptoServiceProvider

http://stackoverflow.com/questions/14937707/getting-incorrect-decryption-value-using-aescryptoserviceprovider

one for you. @Scott Chamberlain aesProvider.IV Convert.FromBase64String 4uy34C9sqOC9rbV4GD8jrA Update Refer How to apply padding.. Update Refer How to apply padding for Base64 . We can use UTF8 for encoding the source input and result output... input and result output. The key and IV may remain in Base64 . Using Base64 for source input will cause issues with some..

Simple 2 way encryption for C#

http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp

honest but something a little stronger than ROT13 or Base64. I'd prefer something that is already included in the .Net framework..

Encryption compatable between Android and C#

http://stackoverflow.com/questions/2090765/encryption-compatable-between-android-and-c-sharp

encoding the encrypted string for transmission over HTTP Base64 would be helpful. Thanks. c# java .net android encryption .. new IvParameterSpec rawSecretKey public String encryptAsBase64 byte clearData byte encryptedData encrypt clearData return net.iharder.base64.Base64.encodeBytes.. encryptedData encrypt clearData return net.iharder.base64.Base64.encodeBytes encryptedData public byte encrypt byte clearData..

Hash and salt passwords in C#

http://stackoverflow.com/questions/2138429/hash-and-salt-passwords-in-c-sharp

byte buff new byte size rng.GetBytes buff Return a Base64 string representation of the random number. return Convert.ToBase64String.. representation of the random number. return Convert.ToBase64String buff private static string CreatePasswordHash string pwd.. a hash to its string representation you can use Convert.ToBase64String and Convert.FromBase64String to convert it back. You should..

System.Net.Mail and =?utf-8?B?XXXXX… Headers

http://stackoverflow.com/questions/454833/system-net-mail-and-utf-8bxxxxx-headers

to do this Quoted Printable subject starts with utf 8 Q Base64 subject starts with utf 8 B It appears that the framework has.. utf 8 B It appears that the framework has figured that the Base64 encoding is more efficient shorter than the quoted printable..

byte[] to hex string

http://stackoverflow.com/questions/623104/byte-to-hex-string

If you want a more compact representation you can use Base64 string base64 Convert.ToBase64String data Result AQIECBAg Added.. representation you can use Base64 string base64 Convert.ToBase64String data Result AQIECBAg Added By OP My test show the fastest..

Unique random string generation

http://stackoverflow.com/questions/730268/unique-random-string-generation

like your example you probably want to convert it to a Base64 string Guid g Guid.NewGuid string GuidString Convert.ToBase64String.. string Guid g Guid.NewGuid string GuidString Convert.ToBase64String g.ToByteArray GuidString GuidString.Replace GuidString..

Compression/Decompression string with C#

http://stackoverflow.com/questions/7343465/compression-decompression-string-with-c-sharp

returns a string . If you want a string from Zip you can Base64 encode it for example by using Convert.ToBase64String r1 the.. you can Base64 encode it for example by using Convert.ToBase64String r1 the result of Zip is VERY binary It isn't something..

How to AES-128 encrypt a string using a password in Delphi and decrypt in C#?

http://stackoverflow.com/questions/9188045/how-to-aes-128-encrypt-a-string-using-a-password-in-delphi-and-decrypt-in-c

uses SysUtils Windows IdCoderMIME TntLXUtils Base64 Encode Decode function Base64_Encode Value TBytes string.. TntLXUtils Base64 Encode Decode function Base64_Encode Value TBytes string var Encoder TIdEncoderMIME begin.. Value finally Encoder.Free end end function Base64_Decode Value string TBytes var Encoder TIdDecoderMIME begin..