LEP

application/octet-stream

Safe

Magic Bytes

Offset: 0
CF 84 01

Lepton is an open-source image compression format developed by Dropbox to losslessly reduce the file size of standard JPEG images. It is primarily utilized in cloud storage infrastructure and archival systems to compress photographic data while preserving bit-perfect reconstruction of the original files. Although the project is no longer actively maintained, the format remains relevant for specific server-side optimization tasks and poses minimal security risks due to its focused scope.

Extension

.lep

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .lep files in Python

Python
def is_lep(file_path: str) -> bool:
    """Check if file is a valid LEP by magic bytes."""
    signature = bytes([0xCF, 0x84, 0x01])
    with open(file_path, "rb") as f:
        return f.read(3) == signature

How to validate .lep files in Node.js

Node.js
function isLEP(buffer: Buffer): boolean {
  const signature = Buffer.from([0xCF, 0x84, 0x01]);
  return buffer.subarray(0, 3).equals(signature);
}
Go
func IsLEP(data []byte) bool {
    signature := []byte{0xCF, 0x84, 0x01}
    if len(data) < 3 {
        return false
    }
    return bytes.Equal(data[:3], signature)
}

API Endpoint

GET /api/v1/lep
curl https://filesignature.org/api/v1/lep

Related Formats