Показать сообщение отдельно
Старый 06.12.2006, 15:47      #4
VictorS
Местный
Пользователь Mozilla Firefox
По умолчанию

Да, это называется Base64. Этот формат используется в электронной почте (MIME) для прикрепления файлов. В нем используются только символы латинского алфавита в верхнем и нижнем регистре — символы (A—Z, a—z), цифры (0—9), и символы «+» и «/», с символом «=» в качестве специального кода суффикса. Полная спецификация этой формы base64 содержится в RFC 1421 и RFC 2045. Результирующие закодированные по base64 данные имеют длину, большую оригинальной в соотношении 4:3, и напоминают по виду случайные символы.
Нашел консольную утилитку, которую использовать так:
Цитата:
base64 [ -d / -e ] [ options ] [ infile ] [ outfile ]
--copyright
Print copyright information.
-d, --decode
Decodes the input, previously created by base64, to recover the original input file.
-e, --encode
Encodes the input into an output text file containing its base64 encoding.
-n, --noerrcheck
Suppress error checking when decoding. By default, upon encountering a non white space character which does not belong to the base64 set, or discovering the input file is incorrectly padded to a multiple of four characters, base64 issues an error message and terminates processing with exit status 1. The -n option suppresses even this rudimentary error checking; invalid characters are silently ignored and the output truncated to the last three valid octets if the input is incorrectly padded.
-u, --help
Print how to call information and a summary of options.
--version
Print program version information.
VictorS вне форума   Ответить с цитированием Вверх
Благодарности: 2
Fafnir (06.12.2006), zloy_kaktus (06.12.2006)