#base64 #constant #php #constant-time #port #hex

const_time_enc

a Rust port of ParagonIE's constant time encodings for PHP

1 unstable release

Uses old Rust 2015

0.1.0 Oct 28, 2018

#47 in #php

Custom license

11KB
195 lines

const_time_enc

Build Status Latest Version

A crate containing a Rust port of ParagonIE's constant time encodings for PHP. No extra dependencies.

WARNING

As per the terms of the license, no guarantee of correctness, fitness for use, or acceptance of liability is made. I am not a professional cryptographer and I nor anyone else have audited this code. All use is strictly at your own risk.

The performance will already be significantly worse than any lookup-based hex/base64 encoding, but be aware that since this library does not have or intend to have unsafe code, it may not be suitably performant for your usecase.

FEATURES

  • Base64 encoding
  • Base64 decoding
  • Hex (base16) encoding
  • Hex (base16) decoding
  • Base32 encoding
  • Base32 decoding
  • Base32 (hex variant) encoding
  • Base32 (hex variant) decoding
  • #![no_std] support

No runtime deps