Questions tagged [base85]
13 questions
13
votes
2 answers
What is the difference between a85encode and b85encode?
Python 3.4 added the a85encode and b85encode functions (and their corresponding decoding functions).
What is the difference between the two? The documentation mentions "They differ by details such as the character map used for encoding.", but this…

orlp
- 112,504
- 36
- 218
- 315
8
votes
4 answers
What text encoding scheme do you use when you have binary data that you need to send over an ascii channel?
If you have binary data that you need to encode, what encoding scheme do you use?
I know about:
Hex encoding. Very simple, but quite verbose, expands one byte to two.
Base 64. Most common, not so verbose, expands three bytes to four.
Base 85. Not…

Paul Wagland
- 27,756
- 10
- 52
- 74
7
votes
4 answers
how to encode/decode ascii85 in javascript
I was looking for an alternative to Base64 which works fine on Unicode characters. I have found ASCII85 which works great however I found no code or command doing that in JS.
I just found this link which does not work for international characters…

gerrnar
- 407
- 1
- 6
- 15
3
votes
2 answers
Base85 aka ASCII85 java projects
Does anyone know about any other than com.idataconnect.lib.ascii85codec java projects that do something like org.apache.commons.codec.binary.Base64 class?

MatBanik
- 26,356
- 39
- 116
- 178
3
votes
1 answer
Why is there a mismatch in base85 between Dart and Python?
Python code
from base64 import b85decode
from base64 import b85encode
encoded=b85encode(b'Hello, world!!!!')
print(encoded.decode('utf-8'))
Output:
'NM&qnZ!92pZ*pv8At50l'
Dart code
import 'dart:io';
import 'dart:typed_data';
import…

Sumit Kumar
- 678
- 4
- 19
3
votes
1 answer
Need assistance with a Base85 (Ascii85) Encoder
Base85 ASCII Encoder/Decoder
LOOK HERE FOR INTIAL REFERENCE ->> Base85 Wikipedia Page
I am making a Base85 encoder/decoder for java, I don't want the answer or solution to my programming or code from a complete encoder. I can provide sources from my…

Logik
- 41
- 5
2
votes
0 answers
What is the "Adobe implementation" of ASCII85 encoding that Python emulates?
In the documentation for the base64 module, the base64.a85encode function takes an adobe parameter, which is described as follows:
adobe controls whether the encoded byte sequence is framed with <~ and
~>, which is used by the Adobe…

jl6
- 6,110
- 7
- 35
- 65
2
votes
2 answers
base85 overflow error during decoding of base85 encoded string
I need to embed binary data into XML files, so I've chosen to use base85 encoding for this.
I have a large bytearray that's filled with the output of calls to struct.pack() via bytearray.extend(struct.pack(varying_data)). It then gets compressed…

timodriaan
- 55
- 3
- 8
2
votes
1 answer
A shorter UUID, ASCII85 with PHP
I read about the UUID v4 and it's virtually unique, and that's what I need. The problem is, it's a too large number, is it possible to generate UUID's like Facebook or Twitter with fewer characters?
I read some post, where you can shrink this code…

punchi
- 41
- 6
1
vote
0 answers
How to store data in base126?
I wish to encode arbitrary binary data in an array of bytes. However the valid values for the data in each encoded byte is in the range of 1-127 inclusive. In other words, invalid values of encoded bytes are 0 and 128-255. With other words, I can't…

Statement
- 3,888
- 3
- 36
- 45
1
vote
2 answers
Get length to decoding Ascii85
ascii85 has a function to get the maximum length of an encoding MaxEncodedLen().
I think that it should have too a function to get the length at decoding like it has in Base64.
http://golang.org/pkg/encoding/ascii85/

user316368
- 1,135
- 2
- 9
- 12
0
votes
1 answer
Any ascii85/base85 encoder/decoder for iOS?
It seems base64 encoding and decoding isn't a problem anymore but ...
Does someone have a implementation for an ascii85 encoder/decoder or know a library?
PS: BASE85 is used e.g. in RFC1924

Stephan
- 4,263
- 2
- 24
- 33
0
votes
2 answers
Why doesn't Ascii85 encoding allow for dynamic compression?
According to Wikipedia:
[Ascii85 uses] the ASCII characters 33 (!) through 117 (u) inclusive (to represent the base-85 digits 0 through 84), together with the letter z (as a special case to represent a 32-bit 0 value).
[btoa] Version 4.2 added a…

ThunderFrame
- 9,352
- 2
- 29
- 60